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

9 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-03 07:57 +0000

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

2__version__ = '.'.join(__version_info__) 

3 

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

5 BoundFunctionWrapper, PartialCallableObjectProxy) 

6 

7from .patches import (resolve_path, apply_patch, wrap_object, wrap_object_attribute, 

8 function_wrapper, wrap_function_wrapper, patch_function_wrapper, 

9 transient_function_wrapper) 

10 

11from .weakrefs import WeakFunctionProxy 

12 

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

14 synchronized) 

15 

16from .importer import (register_post_import_hook, when_imported, 

17 notify_module_loaded, discover_post_import_hooks) 

18 

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

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

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

22 

23from inspect import getcallargs 

24 

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

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

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

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

29 

30from .arguments import formatargspec