Python: Adds Rasmus's suggestion

Co-Authored-By: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
Rebecca Valentine
2020-03-09 16:21:34 -07:00
committed by GitHub
parent 3e53e462d6
commit 810efc5ca2

View File

@@ -433,8 +433,9 @@ class ClassValue extends Value {
or
this.getASuperType() = ClassValue::unicode()
or
/* Does this inherit from abc.Sequence? */
this.getASuperType().getName() = "Sequence"
major_version() = 2 and this.getASuperType() = Value::named("collections.Sequence")
or
major_version() = 3 and this.getASuperType() = Value::named("collections.abc.Sequence")
or
/* Does it have an index or __reversed__ method? */
this.isContainer() and