CodeQL library for Python
Search

Class MRO

A method-resolution-order sequence of classes

Import path

import python

Direct supertypes

Predicates

contains

Holds if this MRO contains cls

declares

Holds if any class in this MRO declares the attribute name

getItem

Gets the nth class in this MRO

length

Gets the length of this MRO

lookup

Gets the value from scanning for the attribute name in this MRO.

startingAt

Gets the MRO formed by removing all classes before cls from this MRO.

toString

Gets a textual representation of this element.