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
First of all, big thanks and congrats on shipping match support! Looks like it's not quite perfect yet as I catch a false-positive F821 with a very simple snippet:
deftest(provided: int) ->int:
matchprovided:
casecaptured:
returncaptured# F821 Undefined name `captured`
❯ ruff --version
ruff 0.0.250
The text was updated successfully, but these errors were encountered:
Will fix this. Please keep filing issues you run into with match. My focus was primarily on getting the syntax working (and traversals working within the linter), so the rules probably have rough edges.
Not sure if this is the same issue or just very similar:
fromdataclassesimportdataclass@dataclassclassCar:
make: strmodel: strmatchCar("Toyota", "Corolla"):
caseCar("Toyota", model):
print(f"Nice {model}. I love what you do for me, Toyota!")
First of all, big thanks and congrats on shipping
match
support! Looks like it's not quite perfect yet as I catch a false-positive F821 with a very simple snippet:The text was updated successfully, but these errors were encountered: