mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Adds fix for __init_subclass__ bug. (#2390)
* Adds fix for __init_subclass__ bug. * Adds test case. * Move test on name. I think it makes more sense here, alongside the other "special" method names.
This commit is contained in:
@@ -31,6 +31,7 @@ where
|
||||
cls.isNewStyle() and
|
||||
not name = "__new__" and
|
||||
not name = "__metaclass__" and
|
||||
not name = "__init_subclass__" and
|
||||
/* declared in scope */
|
||||
f.getScope() = cls.getScope()
|
||||
) and
|
||||
|
||||
Reference in New Issue
Block a user