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
Phlogistique
changed the title
error: Argument ... has incompatible type "function"; expected "Callable[[Any], None]"
Argument ... has incompatible type "function"; expected "Callable[[Any], None]"
Feb 9, 2023
I'm running into the same error with Callable[..., str | None] - both options return str | None but have a different number of inputs. I'm on Python 3.11.6 and mypy 1.8.0.
Very similar to #1983 but still happens with mypy 1.0
Bug Report
To Reproduce
https://mypy-play.net/?mypy=master&python=3.11&gist=a5b887f28bebad92989797587f29a123
Expected Behavior
The code type checks successfully.
Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: