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

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

10 statements  

1""" 

2Wrapt is a library for decorators, wrappers and monkey patching. 

3""" 

4 

5__version_info__ = ("2", "0", "0") 

6__version__ = ".".join(__version_info__) 

7 

8from .__wrapt__ import ( 

9 BaseObjectProxy, 

10 BoundFunctionWrapper, 

11 CallableObjectProxy, 

12 FunctionWrapper, 

13 PartialCallableObjectProxy, 

14 partial, 

15) 

16from .decorators import AdapterFactory, adapter_factory, decorator, synchronized 

17from .importer import ( 

18 discover_post_import_hooks, 

19 notify_module_loaded, 

20 register_post_import_hook, 

21 when_imported, 

22) 

23from .patches import ( 

24 apply_patch, 

25 function_wrapper, 

26 patch_function_wrapper, 

27 resolve_path, 

28 transient_function_wrapper, 

29 wrap_function_wrapper, 

30 wrap_object, 

31 wrap_object_attribute, 

32) 

33from .proxies import AutoObjectProxy, LazyObjectProxy, ObjectProxy, lazy_import 

34from .weakrefs import WeakFunctionProxy 

35 

36__all__ = ( 

37 "AutoObjectProxy", 

38 "BaseObjectProxy", 

39 "BoundFunctionWrapper", 

40 "CallableObjectProxy", 

41 "FunctionWrapper", 

42 "LazyObjectProxy", 

43 "ObjectProxy", 

44 "PartialCallableObjectProxy", 

45 "partial", 

46 "AdapterFactory", 

47 "adapter_factory", 

48 "decorator", 

49 "synchronized", 

50 "discover_post_import_hooks", 

51 "notify_module_loaded", 

52 "register_post_import_hook", 

53 "when_imported", 

54 "apply_patch", 

55 "function_wrapper", 

56 "patch_function_wrapper", 

57 "resolve_path", 

58 "transient_function_wrapper", 

59 "wrap_function_wrapper", 

60 "wrap_object", 

61 "wrap_object_attribute", 

62 "WeakFunctionProxy", 

63)