Skip to content

Commit e8209a6

Browse files
committed
Python: Fix missing override compilation error
1 parent 2e77b8d commit e8209a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/ql/lib/semmle/python/AstExtended.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ class StringList extends StringList_ { }
222222
class AliasList extends AliasList_ { }
223223

224224
/** A generic type parameter, as seen in function, class, and type alias definitions. */
225-
class TypeParameter extends TypeParameter_ { }
225+
class TypeParameter extends TypeParameter_ {
226+
/** Gets a textual representation of this element */
227+
override string toString() { result = TypeParameter_.super.toString() }
228+
}
226229

227230
/** A list of type parameters */
228231
class TypeParameterList extends TypeParameterList_ { }

0 commit comments

Comments
 (0)