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

Function _unwrap_partialmethod

Lib/functools.py:505–514  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

503 return func
504
505def _unwrap_partialmethod(func):
506 prev = None
507 while func is not prev:
508 prev = func
509 while isinstance(getattr(func, "__partialmethod__", None), partialmethod):
510 func = func.__partialmethod__
511 while isinstance(func, partialmethod):
512 func = getattr(func, 'func')
513 func = _unwrap_partial(func)
514 return func
515
516################################################################################
517### LRU Cache function decorator

Callers

nothing calls this directly

Calls 3

isinstanceFunction · 0.85
getattrFunction · 0.85
_unwrap_partialFunction · 0.85

Tested by

no test coverage detected