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

Method __subclasshook__

Lib/os.py:1154–1157  ·  view source on GitHub ↗
(cls, subclass)

Source from the content-addressed store, hash-verified

1152
1153 @classmethod
1154 def __subclasshook__(cls, subclass):
1155 if cls is PathLike:
1156 return _check_methods(subclass, '__fspath__')
1157 return NotImplemented
1158
1159 __class_getitem__ = classmethod(GenericAlias)
1160

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.90

Tested by

no test coverage detected