Skip to content

Commit f262dc6

Browse files
committed
Python: Reword note about debugging getNextClassInMro
1 parent 63b2bd0 commit f262dc6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatch.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,9 @@ Class getADirectSubclass(Class cls) { cls = getADirectSuperclass(result) }
673673
*
674674
* NOTE for debugging the results of this predicate: Since a class can be part of
675675
* multiple MROs, results from this predicate might only be valid in some, but not all,
676-
* inheritance chains (such as the result `C` for `cls=B` in the first example -- this
677-
* might make it difficult to see if the definition of `D` is located in an other file)
676+
* inheritance chains: This is the case with the result `C` for `cls=B` in the first
677+
* example -- if `B` and `C` are defined in the same file, but `D` in a different file,
678+
* this might make the results from this predicate difficult to comprehend at first.
678679
*
679680
* For more info on the C3 MRO used in Python see:
680681
* - https://docs.python.org/3/glossary.html#term-method-resolution-order

0 commit comments

Comments
 (0)