Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
compat.py20 linesDownload Raw Back to jmespath
1import sys2import inspect3from itertools import zip_longest4 5 6text_type = str7string_type = str8 9 10def with_str_method(cls):11    # In python3, we don't need to do anything, we return a str type.12    return cls13 14def with_repr_method(cls):15    return cls16 17def get_methods(cls):18    for name, method in inspect.getmembers(cls, predicate=inspect.isfunction):19        yield name, method20 
codekingpro/portable-devtools · Team Ai