Files
codeql/python/ql/test/library-tests/PointsTo/metaclass/Style.ql
2025-11-26 12:30:31 +00:00

13 lines
260 B
Plaintext

import python
private import LegacyPointsTo
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