Skip to content
New issue

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

[red-knot] support del statement and deletion of except handler names #13641

Open
carljm opened this issue Oct 5, 2024 · 1 comment · Fixed by #13643
Open

[red-knot] support del statement and deletion of except handler names #13641

carljm opened this issue Oct 5, 2024 · 1 comment · Fixed by #13643
Labels
red-knot Multi-file analysis & type inference

Comments

@carljm
Copy link
Contributor

carljm commented Oct 5, 2024

At runtime, names bound in an except handler are del ed at the end of the except handler block. We should model this as if there were a del statement for the name at the end of the block. And we should also support real del statements.

In both cases, it should take the form of a Definition that causes the name to be unbound.

@AlexWaygood
Copy link
Member

Oops, accidentally closed this. It's not fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
red-knot Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants