Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/wrapt/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:35 +0000

1__version_info__ = ('1', '15', '0') 

2__version__ = '.'.join(__version_info__) 

3 

4from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, 

5 BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, 

6 resolve_path, apply_patch, wrap_object, wrap_object_attribute, 

7 function_wrapper, wrap_function_wrapper, patch_function_wrapper, 

8 transient_function_wrapper) 

9 

10from .decorators import (adapter_factory, AdapterFactory, decorator, 

11 synchronized) 

12 

13from .importer import (register_post_import_hook, when_imported, 

14 notify_module_loaded, discover_post_import_hooks) 

15 

16# Import of inspect.getcallargs() included for backward compatibility. An 

17# implementation of this was previously bundled and made available here for 

18# Python <2.7. Avoid using this in future. 

19 

20from inspect import getcallargs 

21 

22# Variant of inspect.formatargspec() included here for forward compatibility. 

23# This is being done because Python 3.11 dropped inspect.formatargspec() but 

24# code for handling signature changing decorators relied on it. Exposing the 

25# bundled implementation here in case any user of wrapt was also needing it. 

26 

27from .arguments import formatargspec