We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e53e46 commit 810efc5Copy full SHA for 810efc5
python/ql/src/semmle/python/objects/ObjectAPI.qll
@@ -433,8 +433,9 @@ class ClassValue extends Value {
433
or
434
this.getASuperType() = ClassValue::unicode()
435
436
- /* Does this inherit from abc.Sequence? */
437
- this.getASuperType().getName() = "Sequence"
+ major_version() = 2 and this.getASuperType() = Value::named("collections.Sequence")
+ or
438
+ major_version() = 3 and this.getASuperType() = Value::named("collections.abc.Sequence")
439
440
/* Does it have an index or __reversed__ method? */
441
this.isContainer() and
0 commit comments