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 type hint of the return type of FlaskCliRunner.invoke ist typing.Any but should use click.testing.Result. This leads to missing auto completions in the IDE as well as errors from the type checker if not additional type narrowing is done.
The type hint of the return type of
FlaskCliRunner.invoke
isttyping.Any
but should useclick.testing.Result
. This leads to missing auto completions in the IDE as well as errors from the type checker if not additional type narrowing is done.The Problem is here: https://github.com/pallets/flask/blob/main/src/flask/testing.py#L276
To fix this
Result
must be imported fromclick.testing
and used as a return type annotation.The documentation already specifies
click.testing.Result
as return type.Environment:
The text was updated successfully, but these errors were encountered: