MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_strict_base

Function is_strict_base

tools/python-3.11.9-amd64/Lib/functools.py:748–752  ·  view source on GitHub ↗
(typ)

Source from the content-addressed store, hash-verified

746 # Remove entries which are strict bases of other entries (they will end up
747 # in the MRO anyway.
748 def is_strict_base(typ):
749 for other in types:
750 if typ != other and typ in other.__mro__:
751 return True
752 return False
753 types = [n for n in types if not is_strict_base(n)]
754 # Subclasses of the ABCs in *types* which are also implemented by
755 # *cls* can be used to stabilize ABC ordering.

Callers 1

_compose_mroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected