Run flake8
on more files (#85333)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
This commit is contained in:
parent
3aad153913
commit
156c815499
6 changed files with 19 additions and 15 deletions
|
@ -22,7 +22,7 @@ class HassConstructorFormatChecker(BaseChecker): # type: ignore[misc]
|
|||
options = ()
|
||||
|
||||
def visit_functiondef(self, node: nodes.FunctionDef) -> None:
|
||||
"""Called when a FunctionDef node is visited."""
|
||||
"""Check for improperly typed `__init__` definitions."""
|
||||
if not node.is_method() or node.name != "__init__":
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue