WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f39c05b

Browse files
Add typing to '_attribute_is_magic'
1 parent 62d17d8 commit f39c05b

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)