(self, _instance_cls: Type[_ET])
| 65 | """ |
| 66 | |
| 67 | def __call__(self, _instance_cls: Type[_ET]) -> _Dispatch[_ET]: |
| 68 | for cls in _instance_cls.__mro__: |
| 69 | if "dispatch" in cls.__dict__: |
| 70 | return cast( |
| 71 | "_Dispatch[_ET]", cls.__dict__["dispatch"].dispatch |
| 72 | )._for_class(_instance_cls) |
| 73 | else: |
| 74 | raise AttributeError("No class with a 'dispatch' member present.") |
| 75 | |
| 76 | |
| 77 | class _DispatchCommon(Generic[_ET]): |
nothing calls this directly
no test coverage detected