From 475ed5b5ddea0950af4977fb90b4b4d5d7ed88e8 Mon Sep 17 00:00:00 2001 From: Jeremy Leibs Date: Tue, 15 Oct 2024 12:12:23 -0400 Subject: [PATCH] Update signature checker for property-getters --- scripts/ci/python_check_signatures.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ci/python_check_signatures.py b/scripts/ci/python_check_signatures.py index 41f303c39e77..4257173f39d3 100644 --- a/scripts/ci/python_check_signatures.py +++ b/scripts/ci/python_check_signatures.py @@ -112,6 +112,11 @@ def load_runtime_signatures(module_name: str) -> TotalSignature: class_def[method_name] = inspect.signature(method_obj) except Exception: pass + # Get property getters + for method_name, method_obj in inspect.getmembers( + obj, lambda o: o.__class__.__name__ == "getset_descriptor" + ): + class_def[method_name] = Signature(parameters=[Parameter("self", Parameter.POSITIONAL_ONLY)]) signatures[name] = class_def return signatures