mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Python: Handle __class_getitem__ in py/not-named-self (#2825)
Fixes #2824
This commit is contained in:
@@ -32,6 +32,7 @@ where
|
||||
not name = "__new__" and
|
||||
not name = "__metaclass__" and
|
||||
not name = "__init_subclass__" and
|
||||
not name = "__class_getitem__" and
|
||||
/* declared in scope */
|
||||
f.getScope() = cls.getScope()
|
||||
) and
|
||||
|
||||
Reference in New Issue
Block a user