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

Add UseBuiltInsTypes rule #482

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

AnuarNav
Copy link

@AnuarNav AnuarNav commented Aug 21, 2024

Summary

Adding a new rule "UseBuiltInsTypes" for PYTHON_VERSION >= 3.10 -- See PEP 585 – Type Hinting Generics In Standard Collections.
This rule is the opposite of the existing rule UseTypesFromTyping.

Test Plan

See added tests in rule.

NOTE

Even when adding PYTHON_VERSION = ">= 3.10" the rule still runs on fixit, even though it's pinned to use python 3.8 (hence the test test_this_project_is_clean fails).
What am I missing?

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 21, 2024
@AnuarNav AnuarNav changed the title Add UsePrimitiveTypes rule Add UseBuiltInsTypes rule Aug 21, 2024
@AnuarNav AnuarNav marked this pull request as ready for review August 21, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants