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

New 1xx rule: after except* FooError as e:, warn on e.attribute for attributes that don't exist on ExceptionGroup #301

Open
Zac-HD opened this issue Oct 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Oct 17, 2024

This is redundant with a strict typechecker or 100% code coverage, but it's an easy mistake to make when you're migrating error-handling code to use except* and a linter would help for code that doesn't have those other checks.

@Zac-HD Zac-HD changed the title New rule: after except* FooError as e:, warn on e.attribute for attributes that don't exist on ExceptionGroup New 1xx rule: after except* FooError as e:, warn on e.attribute for attributes that don't exist on ExceptionGroup Oct 17, 2024
@jakkdl jakkdl added the enhancement New feature or request label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants