You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.py:30: error: Argument 1 has incompatible type Callable[[int], str]; expected Callable[[None], None]
test.py:34: error: Argument 1 to "test" has incompatible type "int"; expected None
What is wrang (looks like mypy wrongly treat @dec() as @dec and infere function type as parameters...
I need to create decorator with customization.
and found curious problem:
Produce following error:
What is wrang (looks like mypy wrongly treat
@dec()
as@dec
and infere function type as parameters...This:
Works good and point me to mistake with argument type.
The text was updated successfully, but these errors were encountered: