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
The types defined here are not valid according to mypy. Currently, all usages of the functions returned by these fixtures raise the following error in mypy's type checking:
error: Too few arguments [call-arg]
I have already tried moving to using a Protocol definition like the following:
One option here would be to go with the protocol above as this will allow us to remove the type: ignores on each of the uses of the fixtures, and just add a single ignore on the return statement of the fixture (e.g. here). A similar option would be to use cast on the return to force mypy to believe it's correct.
Both of these feel like workarounds though so I'm keen to find a better approach.
The types defined here are not valid according to mypy. Currently, all usages of the functions returned by these fixtures raise the following error in mypy's type checking:
I have already tried moving to using a Protocol definition like the following:
However, this just results in a different error:
The text was updated successfully, but these errors were encountered: