Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5859590 commit 56c83e2Copy full SHA for 56c83e2
1 file changed
python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatch.qll
@@ -2089,7 +2089,8 @@ module DuckTyping {
2089
/**
2090
* Holds if `cls` is a new-style class. In Python 3, all classes are new-style.
2091
* In Python 2, a class is new-style if it (transitively) inherits from `object`,
2092
- * or has a declared `__metaclass__`, or has an unresolved base class.
+ * or has a declared `__metaclass__`, or is in a module with a module-level
2093
+ * `__metaclass__` declaration, or has an unresolved base class.
2094
*/
2095
predicate isNewStyle(Class cls) {
2096
major_version() = 3
0 commit comments