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

Function _lazy_load_getattr_static

Lib/typing.py:1927–1931  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1925
1926@functools.cache
1927def _lazy_load_getattr_static():
1928 # Import getattr_static lazily so as not to slow down the import of typing.py
1929 # Cache the result so we don't slow down _ProtocolMeta.__instancecheck__ unnecessarily
1930 from inspect import getattr_static
1931 return getattr_static
1932
1933
1934_cleanups.append(_lazy_load_getattr_static.cache_clear)

Callers 1

__instancecheck__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected