Skip to content

Commit b83fc3b

Browse files
committed
Python: Update QLDoc for clsArgumentTracker
1 parent 2489280 commit b83fc3b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,9 @@ Node selfTracker(Class classWithMethod) {
550550
}
551551

552552
/**
553-
* Gets a reference to the `cls` argument of a classmethod on class `classWithMethod`.
553+
* Gets a reference to the enclosing class `classWithMethod` from within one of its
554+
* methods, either through the `cls` argument from a `classmethod` or from `type(self)`
555+
* from a normal method.
554556
*/
555557
private TypeTrackingNode clsArgumentTracker(TypeTracker t, Class classWithMethod) {
556558
t.start() and
@@ -572,7 +574,9 @@ private TypeTrackingNode clsArgumentTracker(TypeTracker t, Class classWithMethod
572574
}
573575

574576
/**
575-
* Gets a reference to the `cls` argument of a classmethod on class `classWithMethod`.
577+
* Gets a reference to the enclosing class `classWithMethod` from within one of its
578+
* methods, either through the `cls` argument from a `classmethod` or from `type(self)`
579+
* from a normal method.
576580
*/
577581
Node clsArgumentTracker(Class classWithMethod) {
578582
clsArgumentTracker(TypeTracker::end(), classWithMethod).flowsTo(result)

0 commit comments

Comments
 (0)