mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
11 lines
338 B
Plaintext
11 lines
338 B
Plaintext
import python
|
|
private import LegacyPointsTo
|
|
|
|
from ClassObject cls, string kind
|
|
where
|
|
cls.isDescriptorType() and
|
|
/* Exclude bound-method as its name differs between 2 and 3 */
|
|
not cls = theBoundMethodType() and
|
|
(if cls.isOverridingDescriptorType() then kind = "overriding" else kind = "non-overriding")
|
|
select cls.toString(), kind
|