MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_subtype

Method is_subtype

crates/vm/src/builtins/type.rs:1243–1245  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

1241
1242impl Py<PyType> {
1243 pub(crate) fn is_subtype(&self, other: &Self) -> bool {
1244 is_subtype_with_mro(&self.mro.read(), self, other)
1245 }
1246
1247 /// Equivalent to CPython's PyType_CheckExact macro
1248 /// Checks if obj is exactly a type (not a subclass)

Callers 2

recursive_issubclassMethod · 0.80
object_isinstanceMethod · 0.80

Calls 2

is_subtype_with_mroFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected