Multiple dispatch – "function requires at least 1 positional argument"
In a multiple dispatch situation I don’t understand why I constantly run into an error saying: TypeError: some_func requires at least 1 positional argument. For example, we have a following function: from functools import singledispatch @singledispatch def some_func(a, b): … @some_func.register def _(a: str, b: int): print(f'{a=}, {b=}’) @some_func.register def _(a: str, b: bool): print(f'{b=},… Read More Multiple dispatch – "function requires at least 1 positional argument"