From c50d366527f3229414cdbd732a66b35589638f3c Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Thu, 24 Oct 2019 17:04:57 +0200 Subject: [PATCH] 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 --- python/ql/src/semmle/python/objects/ObjectAPI.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ql/src/semmle/python/objects/ObjectAPI.qll b/python/ql/src/semmle/python/objects/ObjectAPI.qll index dd6b856875a9..e2fdd1df703e 100644 --- a/python/ql/src/semmle/python/objects/ObjectAPI.qll +++ b/python/ql/src/semmle/python/objects/ObjectAPI.qll @@ -384,12 +384,12 @@ class ClassValue extends Value { Types::failedInference(this, reason) } - /** Gets the nth base class of this class */ + /** Gets the nth immediate base type of this class. */ ClassValue getBaseType(int n) { result = Types::getBase(this, n) } - /** Gets a base class of this class */ + /** Gets an immediate base type of this class. */ ClassValue getABaseType() { result = Types::getBase(this, _) }