|
@@ -8,6 +8,7 @@
|
|
|
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
|
|
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
|
# specific language governing permissions and limitations under the License.
|
|
|
+
|
|
|
from functools import lru_cache
|
|
|
from typing import Type
|
|
|
|
|
@@ -20,11 +21,11 @@ from ._sequence_manager import _SequenceManager
|
|
|
class _SequenceManagerFactory(_ManagerFactory):
|
|
|
@classmethod
|
|
|
@lru_cache
|
|
|
- def _build_manager(cls) -> Type[_SequenceManager]: # type: ignore
|
|
|
+ def _build_manager(cls) -> Type[_SequenceManager]:
|
|
|
if EnterpriseEditionUtils._using_enterprise():
|
|
|
sequence_manager = _load_fct(
|
|
|
EnterpriseEditionUtils._TAIPY_ENTERPRISE_CORE_MODULE + ".sequence._sequence_manager", "_SequenceManager"
|
|
|
- ) # type: ignore
|
|
|
+ )
|
|
|
else:
|
|
|
sequence_manager = _SequenceManager
|
|
|
return sequence_manager # type: ignore
|