Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/jmespath/compat.py: 100%
12 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:03 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:03 +0000
1import sys
2import inspect
3from itertools import zip_longest
6text_type = str
7string_type = str
10def with_str_method(cls):
11 # In python3, we don't need to do anything, we return a str type.
12 return cls
14def with_repr_method(cls):
15 return cls
17def get_methods(cls):
18 for name, method in inspect.getmembers(cls, predicate=inspect.isfunction):
19 yield name, method