Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c50d366

Browse files
committed
Python: Improve qldoc for ClassValue::getABaseType
Hopefully it is more clear that you can get multiple results from getABaseType because of multiple inheritance, and not because we are following the chain of inheritance
1 parent fc8c1e1 commit c50d366

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,12 @@ class ClassValue extends Value {
384384
Types::failedInference(this, reason)
385385
}
386386

387-
/** Gets the nth base class of this class */
387+
/** Gets the nth immediate base type of this class. */
388388
ClassValue getBaseType(int n) {
389389
result = Types::getBase(this, n)
390390
}
391391

392-
/** Gets a base class of this class */
392+
/** Gets an immediate base type of this class. */
393393
ClassValue getABaseType() {
394394
result = Types::getBase(this, _)
395395
}

0 commit comments

Comments
 (0)