Skip to content

Commit

Permalink
code quality cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Feb 7, 2024
1 parent 58dfc52 commit af98c50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jedi/parser_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,10 @@ def wrapper(function_node):
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" \
# do not report __class__.__setter__ as a property
# eirannejad 2024-02-07:
# not sure if there are other cases but this passes the tests
or (m.endswith(".setter") and not m.startswith('__class__'))
lambda m: m == "property"
or m == "cached_property"
# do not report __class__.__setter__ as a property
# eirannejad 2024-02-07:
# not sure if there are other cases but this passes the tests
or (m.endswith(".setter") and not m.startswith('__class__'))
)

0 comments on commit af98c50

Please sign in to comment.