(self, /, *args, **kwargs)
| 1061 | return f'<single dispatch method {name}>' |
| 1062 | |
| 1063 | def __call__(self, /, *args, **kwargs): |
| 1064 | if not args: |
| 1065 | funcname = getattr(self._unbound.func, '__name__', |
| 1066 | 'singledispatchmethod method') |
| 1067 | raise TypeError(f'{funcname} requires at least ' |
| 1068 | '1 positional argument') |
| 1069 | return self._dispatch(args[0].__class__).__get__(self._obj, self._cls)(*args, **kwargs) |
| 1070 | |
| 1071 | def __getattr__(self, name): |
| 1072 | # Resolve these attributes lazily to speed up creation of |