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

fix: NoInfereableTypes should not remove types from all consts #1499

Conversation

rubiesonthesky
Copy link
Collaborator

@rubiesonthesky rubiesonthesky commented Mar 31, 2024

PR Checklist

Overview

It's not safe to remove type from const always. I think the mutation tests agree with me. Some things are marked as "non-inferable" but still their types were removed.

Copy link
Owner

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Always nice to see source code line removal that improves something. ❤️‍🔥

I defer to your preference on the comments. Whatever you think is reasonable 😄. And then, you should have permission to merge, lmk if not.

@rubiesonthesky
Copy link
Collaborator Author

I'll merge this now. I can do follow-up if needed. :)

@rubiesonthesky rubiesonthesky merged commit a87a8c6 into JoshuaKGoldberg:main Apr 1, 2024
14 checks passed
@rubiesonthesky rubiesonthesky deleted the fix-no-inferable-types-removing-all-const branch April 1, 2024 14:02
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

Successfully merging this pull request may close these issues.

🐛 Bug: noInferableTypes removes types from consts where it's not safe
2 participants