-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
Summary
Hi,
possible linter check - method wrapped to property decorator must have at least one explicit return, possible issue is:
In [1]: class A:
...: @property
...: def b(self):
...: "Hi"
...:
In [3]: A().b is None
Out[3]: True
of course it should be covered by tests, but sometimes is not, especially if it's some special path in the code.
Metadata
Metadata
Assignees
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule