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

Method register

Lib/abc.py:110–115  ·  view source on GitHub ↗

Register a virtual subclass of an ABC. Returns the subclass, to allow usage as a class decorator.

(cls, subclass)

Source from the content-addressed store, hash-verified

108 return cls
109
110 def register(cls, subclass):
111 """Register a virtual subclass of an ABC.
112
113 Returns the subclass, to allow usage as a class decorator.
114 """
115 return _abc_register(cls, subclass)
116
117 def __instancecheck__(cls, instance):
118 """Override for isinstance(instance, cls)."""

Callers 15

mp_newtype.pyFile · 0.45
io.pyFile · 0.45
rlcompleter.pyFile · 0.45
pkgutil.pyFile · 0.45
register_readlineFunction · 0.45
contextvars.pyFile · 0.45
numbers.pyFile · 0.45
_pyio.pyFile · 0.45
weakref.pyFile · 0.45
__init__Method · 0.45
_wait_pidfdMethod · 0.45
_communicateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected