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
Woo pattern matching! Thank you for supporting 99% of our codebase, here's some bugs :P
classTheEyesHaveIt:
def__init__(self, i=None, eye=None):
self.i=iself.eye=eyedefmatch_the_thing(thing: TheEyesHaveIt) ->None:
matchthing:
caseTheEyesHaveIt(i=value) ifvalue:
print(f"The i's have it at {value}")
caseTheEyesHaveIt(eye=value) ifvalue:
print(f"The eyes have it at {value}")
a=TheEyesHaveIt(eye="foo")
b=TheEyesHaveIt(i="bar")
match_the_thing(a)
match_the_thing(b)
All those values are marked as undefined names "F821 Undefined name `value`".
The text was updated successfully, but these errors were encountered:
Woo pattern matching! Thank you for supporting 99% of our codebase, here's some bugs :P
All those
value
s are marked as undefined names "F821 Undefined name `value`".The text was updated successfully, but these errors were encountered: