MCPcopy Index your code
hub / github.com/python/cpython / is_strict_base

Function is_strict_base

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

Source from the content-addressed store, hash-verified

842 # Remove entries which are strict bases of other entries (they will end up
843 # in the MRO anyway.
844 def is_strict_base(typ):
845 for other in types:
846 if typ != other and typ in other.__mro__:
847 return True
848 return False
849 types = [n for n in types if not is_strict_base(n)]
850 # Subclasses of the ABCs in *types* which are also implemented by
851 # *cls* can be used to stabilize ABC ordering.

Callers 1

_compose_mroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…