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 {
157157 /**
158158 * Gets a textual representation of this element.
159159 */
160- string toString ( ) { none ( ) }
160+ abstract string toString ( ) ;
161161
162162 /**
163163 * 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 { }
2020 * An abstract class encompassing API graph nodes that implement PEP 249.
2121 * Extend this class for implementations.
2222 */
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+ }
2427
2528/** Gets a reference to a connect call. */
2629DataFlow:: Node connect ( ) { result = any ( PEP249ModuleApiNode a ) .getMember ( "connect" ) .getAUse ( ) }
You can’t perform that action at this time.
0 commit comments