()
| 1925 | |
| 1926 | @functools.cache |
| 1927 | def _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) |