Static type check fails for proposed everything_except() recipe.
#3753
Labels
interop
how to play nicely with other packages
everything_except() recipe.
#3753
Hello, following the example recipe given with the
from_type()strategy (I removed theexcluded_types: type | tuple[type]arg to simplify the code), I noticed that said recipe fails to type check:fails with this error:
A few observations:
# type: ignore[misc]comment doesn’t work for any line in the above test.flatmap()passes the type checks.Running that strategy seems to work, though:
produces the expected output.
This is for hypothesis v6.86.1 and mypy v1.5.1. Please let me know if you need more information, or if you’re able to reproduce.
I’m going to dig around some more later today to try and find the cause of the failing type check. For the time being, I’m going to (have to) decorate the function with
@no_type_checkto disable type checking.The text was updated successfully, but these errors were encountered: