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

Function is_related

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

Source from the content-addressed store, hash-verified

739 bases = set(cls.__mro__)
740 # Remove entries which are already present in the __mro__ or unrelated.
741 def is_related(typ):
742 return (typ not in bases and hasattr(typ, '__mro__')
743 and not isinstance(typ, GenericAlias)
744 and issubclass(cls, typ))
745 types = [n for n in types if is_related(n)]
746 # Remove entries which are strict bases of other entries (they will end up
747 # in the MRO anyway.

Callers 1

_compose_mroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected