File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
python/ql/src/semmle/python Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ module API {
157
157
/**
158
158
* Gets a textual representation of this element.
159
159
*/
160
- string toString ( ) { none ( ) }
160
+ abstract string toString ( ) ;
161
161
162
162
/**
163
163
* Gets a path of the given `length` from the root to this node.
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ abstract deprecated class PEP249Module extends DataFlow::Node { }
20
20
* An abstract class encompassing API graph nodes that implement PEP 249.
21
21
* Extend this class for implementations.
22
22
*/
23
- abstract class PEP249ModuleApiNode extends API:: Node { }
23
+ abstract class PEP249ModuleApiNode extends API:: Node {
24
+ /** Gets a string representation of this element. */
25
+ override string toString ( ) { result = this .( API:: Node ) .toString ( ) }
26
+ }
24
27
25
28
/** Gets a reference to a connect call. */
26
29
DataFlow:: Node connect ( ) { result = any ( PEP249ModuleApiNode a ) .getMember ( "connect" ) .getAUse ( ) }
You can’t perform that action at this time.
0 commit comments