We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Foo: prop: int def process(f: Foo): match f: case Foo(prop=1): print("one") case Foo(prop=prop): print(f"other: {prop}") case _: print("default") if __name__ == "__main__": f = Foo() f.prop = 1 process(f)
Foo.prop
my_prop
Destructuring pattern matching is updated from prop to my_prop. Program behavior is unchanged.
prop
Destructuring pattern matching is not affected, program behavior is silently modified (default case is reached).
...
The text was updated successfully, but these errors were encountered:
StellaHuang95
No branches or pull requests
Environment data
Code Snippet
Repro Steps
Foo.prop
, click "Rename symbol" and name it something else, e.g.my_prop
Expected behavior
Destructuring pattern matching is updated from
prop
tomy_prop
. Program behavior is unchanged.Actual behavior
Destructuring pattern matching is not affected, program behavior is silently modified (default case is reached).
Logs
The text was updated successfully, but these errors were encountered: