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

Function is_strict_base

Lib/functools.py:823–827  ·  view source on GitHub ↗
(typ)

Source from the content-addressed store, hash-verified

821 # Remove entries which are strict bases of other entries (they will end up
822 # in the MRO anyway.
823 def is_strict_base(typ):
824 for other in types:
825 if typ != other and typ in other.__mro__:
826 return True
827 return False
828 types = [n for n in types if not is_strict_base(n)]
829 # Subclasses of the ABCs in *types* which are also implemented by
830 # *cls* can be used to stabilize ABC ordering.

Callers 1

_compose_mroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected