-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
acceptedReady for implementationReady for implementationhelp wantedContributions especially welcomeContributions especially welcomeruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
A property is normally meant to be consumed.
class Class:
@property
def data(self) -> None:
return None
# RET501 [*] Do not explicitly `return None` in function if it is the only possible return valueBased on home-assistant/core#115031
Note: the main case is when overriding base properties, so this may not be needed if #12198 is resolved.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationhelp wantedContributions especially welcomeContributions especially welcomeruleImplementing or modifying a lint ruleImplementing or modifying a lint rule