__init__.py 1.2 KB

12345678910111213141516171819202122232425262728
  1. __version_info__ = ('1', '14', '1')
  2. __version__ = '.'.join(__version_info__)
  3. from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper,
  4. BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy,
  5. resolve_path, apply_patch, wrap_object, wrap_object_attribute,
  6. function_wrapper, wrap_function_wrapper, patch_function_wrapper,
  7. transient_function_wrapper)
  8. from .decorators import (adapter_factory, AdapterFactory, decorator,
  9. synchronized)
  10. from .importer import (register_post_import_hook, when_imported,
  11. notify_module_loaded, discover_post_import_hooks)
  12. # Import of inspect.getcallargs() included for backward compatibility. An
  13. # implementation of this was previously bundled and made available here for
  14. # Python <2.7. Avoid using this in future.
  15. from inspect import getcallargs
  16. # Variant of inspect.formatargspec() included here for forward compatibility.
  17. # This is being done because Python 3.11 dropped inspect.formatargspec() but
  18. # code for handling signature changing decorators relied on it. Exposing the
  19. # bundled implementation here in case any user of wrapt was also needing it.
  20. from .arguments import formatargspec