(cls, method: str)
| 1220 | return self.method |
| 1221 | |
| 1222 | def __new__(cls, method: str): |
| 1223 | try: |
| 1224 | return _method_cache[method] |
| 1225 | except KeyError: |
| 1226 | self = object.__new__(cls) |
| 1227 | self.method = method |
| 1228 | _method_cache[method] = self |
| 1229 | return self |
| 1230 | |
| 1231 | def __call__(self, __obj, *args, **kwargs): |
| 1232 | return getattr(__obj, self.method)(*args, **kwargs) |
nothing calls this directly
no outgoing calls
no test coverage detected