3 ms·
Alternatively, use an `@overload` in a `.pyi` file and specify your types there. This means that you will have 2^N combinations and doubling every time you acc
by PartiallyTyped 3y ago
Alternatively, use an `@overload` in a `.pyi` file and specify your types there.
This means that you will have 2^N combinations and doubling every time you accept a new argument.
If that is not good enough, then simply use a `TypedDict` with everything optional instead of `**kwargs`. Your call will then become `foo(SomeTypedDict(p1=p2,...))`.