(func)
| 503 | return func |
| 504 | |
| 505 | def _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 |
nothing calls this directly
no test coverage detected