From fef43b5e3d6323c2e221592cd563908251a40363 Mon Sep 17 00:00:00 2001 From: eirannejad Date: Wed, 7 Feb 2024 14:36:48 -0600 Subject: [PATCH] code cleanups --- jedi/parser_utils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jedi/parser_utils.py b/jedi/parser_utils.py index f9194b50..6a8141b9 100644 --- a/jedi/parser_utils.py +++ b/jedi/parser_utils.py @@ -336,6 +336,8 @@ def _function_is_x_method(decorator_checker): return wrapper -function_is_staticmethod = _function_is_x_method(lambda m: m == 'staticmethod') -function_is_classmethod = _function_is_x_method(lambda m: m == 'classmethod') -function_is_property = _function_is_x_method(lambda m: m == 'property' or m == 'cached_property' or m.endswith('.setter')) +function_is_staticmethod = _function_is_x_method(lambda m: m == "staticmethod") +function_is_classmethod = _function_is_x_method(lambda m: m == "classmethod") +function_is_property = _function_is_x_method( + lambda m: m == "property" or m == "cached_property" or m.endswith(".setter") +)