Skip to content

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
@AnuarNav AnuarNav requested review from amyreese and zsol as code owners 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.

3 participants