MCPcopy Index your code
hub / github.com/RustPython/RustPython / __subclasshook__

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

1133
1134 @classmethod
1135 def __subclasshook__(cls, subclass):
1136 if cls is PathLike:
1137 return _check_methods(subclass, '__fspath__')
1138 return NotImplemented
1139
1140 __class_getitem__ = classmethod(GenericAlias)
1141

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.90

Tested by

no test coverage detected