From 4a52a71956a8d46fcb7294ac71734504bb09bcc2 Mon Sep 17 00:00:00 2001 From: S. Solomon Darnell Date: Fri, 28 Mar 2025 21:52:21 -0500 Subject: two version of R2R are here --- .venv/lib/python3.12/site-packages/jmespath/compat.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .venv/lib/python3.12/site-packages/jmespath/compat.py (limited to '.venv/lib/python3.12/site-packages/jmespath/compat.py') diff --git a/.venv/lib/python3.12/site-packages/jmespath/compat.py b/.venv/lib/python3.12/site-packages/jmespath/compat.py new file mode 100644 index 00000000..50f8f277 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/jmespath/compat.py @@ -0,0 +1,19 @@ +import sys +import inspect +from itertools import zip_longest + + +text_type = str +string_type = str + + +def with_str_method(cls): + # In python3, we don't need to do anything, we return a str type. + return cls + +def with_repr_method(cls): + return cls + +def get_methods(cls): + for name, method in inspect.getmembers(cls, predicate=inspect.isfunction): + yield name, method -- cgit v1.2.3