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

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

19 statements  

1from .itertoolz import * 

2 

3from .functoolz import * 

4 

5from .dicttoolz import * 

6 

7from .recipes import * 

8 

9from functools import partial, reduce 

10 

11sorted = sorted 

12 

13map = map 

14 

15filter = filter 

16 

17# Aliases 

18comp = compose 

19 

20from . import curried, sandbox 

21 

22functoolz._sigs.create_signature_registry() 

23 

24 

25def __getattr__(name): 

26 if name == "__version__": 

27 from importlib.metadata import version 

28 

29 rv = version("toolz") 

30 globals()[name] = rv 

31 return rv 

32 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")