Skip to content

Commit 8277199

Browse files
Add typing to '_attribute_is_magic'
1 parent b9d9c86 commit 8277199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def is_model_mpttmeta_subclass(node):
511511
return node_is_subclass(node.parent, *parents)
512512

513513

514-
def _attribute_is_magic(node, attrs, parents):
514+
def _attribute_is_magic(node: Attribute, attrs: set[str], parents: tuple[str, ...]) -> bool:
515515
"""Checks that node is an attribute used inside one of allowed parents"""
516516
if node.attrname not in attrs:
517517
return False

0 commit comments

Comments
 (0)