Files
codeql/python/ql/test/library-tests/PointsTo/metaclass/Style.ql
2020-03-30 11:59:10 +02:00

12 lines
248 B
Plaintext

import python
from ClassObject cls, string style
where
cls.getPyClass().getEnclosingModule().getName() = "test" and
(
cls.isNewStyle() and style = "new"
or
cls.isOldStyle() and style = "old"
)
select cls, style