I have a function which should receive another function as an argument. I defined that parameter annotation as:
input_function: Callable[
[
Optional[InputType],
Optional[Sequence[str]],
Optional[bool]
],
Awaitable[str]
] = func
My func function, meanwhile, is defined like so:
async def func(input_type: InputType = None, formats: Sequence[str] = (), *, hide: bool = False) -> str: ...
The function signature and parameter annotation should be the same. However, when I call that function with only one parameter (as all of the parameters are optional), PyCharm says that there are unfilled parameters:
