diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-23 16:40:32 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-23 16:40:32 +0800 |
commit | 7e54b1ebe280d760347b1b640c9d4d0038ca6c58 (patch) | |
tree | 4d42c7a84066f0c2ae320e32dc7d86072fd0e4ae /services/manager/__init__.py | |
parent | 34704b2090c48d9ab9e7458475fd701a38706ae7 (diff) | |
download | crupest-7e54b1ebe280d760347b1b640c9d4d0038ca6c58.tar.gz crupest-7e54b1ebe280d760347b1b640c9d4d0038ca6c58.tar.bz2 crupest-7e54b1ebe280d760347b1b640c9d4d0038ca6c58.zip |
feat(python): move python codes.
Diffstat (limited to 'services/manager/__init__.py')
-rw-r--r-- | services/manager/__init__.py | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/services/manager/__init__.py b/services/manager/__init__.py deleted file mode 100644 index 17799a9..0000000 --- a/services/manager/__init__.py +++ /dev/null @@ -1,60 +0,0 @@ -import sys - -from ._base import CRU, CruNamespaceError, CRU_NAME_PREFIXES -from ._error import ( - CruException, - CruLogicError, - CruInternalError, - CruUnreachableError, - cru_unreachable, -) -from ._const import ( - CruConstantBase, - CruDontChange, - CruNotFound, - CruNoValue, - CruPlaceholder, - CruUseDefault, -) -from ._func import CruFunction -from ._iter import CruIterable, CruIterator -from ._event import CruEvent, CruEventHandlerToken -from ._type import CruTypeSet, CruTypeCheckError - - -class CruInitError(CruException): - pass - - -def check_python_version(required_version=(3, 11)): - if sys.version_info < required_version: - raise CruInitError(f"Python version must be >= {required_version}!") - - -check_python_version() - -__all__ = [ - "CRU", - "CruNamespaceError", - "CRU_NAME_PREFIXES", - "check_python_version", - "CruException", - "CruInternalError", - "CruLogicError", - "CruUnreachableError", - "cru_unreachable", - "CruInitError", - "CruConstantBase", - "CruDontChange", - "CruNotFound", - "CruNoValue", - "CruPlaceholder", - "CruUseDefault", - "CruFunction", - "CruIterable", - "CruIterator", - "CruEvent", - "CruEventHandlerToken", - "CruTypeSet", - "CruTypeCheckError", -] |