Coverage for src/decopatch/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v6.4.1, created at 2022-07-06 15:13 +0000

1from decopatch.utils_modes import DECORATED, WRAPPED, F_ARGS, F_KWARGS, InvalidSignatureError 

2from decopatch.utils_disambiguation import FirstArgDisambiguation, with_parenthesis, no_parenthesis, is_decorator_call 

3from decopatch.utils_calls import AmbiguousFirstArgumentTypeError, InvalidMandatoryArgError 

4 

5from decopatch.main import function_decorator, class_decorator, decorator 

6 

7try: 

8 # -- Distribution mode: import from _version.py generated by setuptools_scm during release 

9 from ._version import version as __version__ 

10except ImportError: 

11 # -- Source mode: use setuptools_scm to get the current version from src using git 

12 from setuptools_scm import get_version as _gv 

13 from os import path as _path 

14 __version__ = _gv(_path.join(_path.dirname(__file__), _path.pardir)) 

15 

16__all__ = [ 

17 '__version__', 

18 # submodules 

19 'main', 'utils_disambiguation', 'utils_modes', 'utils_calls', 

20 # symbols 

21 'DECORATED', 'WRAPPED', 'F_ARGS', 'F_KWARGS', 'InvalidSignatureError', 

22 'FirstArgDisambiguation', 'with_parenthesis', 'no_parenthesis', 

23 'AmbiguousFirstArgumentTypeError', 'InvalidMandatoryArgError', 

24 'function_decorator', 'class_decorator', 'decorator', 'is_decorator_call' 

25]