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
Currently pyflyby does not understand structural pattern matching. In the following example, pyflyby erroneously suggests an unneeded import:
from typing_extensions import assert_never
my_var: int | str = 5
match my_var:
case str():
print("we have a str")
case int():
print("we have an int")
case json: # try to assert that my_var is never a json object
assert_never(json)
Currently pyflyby does not understand structural pattern matching. In the following example, pyflyby erroneously suggests an unneeded import:
case json:
is a catch-all that will match any value and assign the name json to it, though that does not detract from this being a pyflyby bug.The text was updated successfully, but these errors were encountered: