Call the corresponding method based on type of argument.
(self, arg, *args, **kwargs)
| 775 | raise TypeError(f"No dispatch for {cls}") |
| 776 | |
| 777 | def __call__(self, arg, *args, **kwargs): |
| 778 | """ |
| 779 | Call the corresponding method based on type of argument. |
| 780 | """ |
| 781 | meth = self.dispatch(type(arg)) |
| 782 | return meth(arg, *args, **kwargs) |
| 783 | |
| 784 | @property |
| 785 | def __doc__(self): |