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

Disabling the MissingTypeAnnotation linting rule disabled the "Add inferred annotation" code action. #827

Open
anagrius opened this issue Nov 6, 2022 · 1 comment

Comments

@anagrius
Copy link
Contributor

anagrius commented Nov 6, 2022

There is an unfortunate interaction between the linting rule "MissingTypeAnnotation" and "Add inferred annotation" code action.

If you disable the linting rule, you cannot trigger the code action for top-level functions missing a type annotation.

I would be happy to make a PR fixing this. If we agree that there is no reason to disable the code action just because the linter does not report it as an error.

@razzeee
Copy link
Member

razzeee commented Nov 6, 2022

Yeah, if that can be sanely done, without adding too much maintenance burden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants