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

refactor: Make use of is_typing for Literal/Annotated detection. #195

Conversation

Daverball
Copy link
Collaborator

Makes soft use concept of mapped_names more generic and reuse it for walking Annotated value expressions.

Closes: #192

Makes soft use concept of `mapped_names` more generic and reuse it for
walking `Annotated` value expressions.
@Daverball Daverball force-pushed the refactor/use-full-name-lookup-for-literal-and-annotated branch from f1c791f to 3a36506 Compare December 9, 2024 08:12
@Daverball Daverball requested a review from sondrelg December 9, 2024 08:13
Copy link
Member

@sondrelg sondrelg left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just have one clarifying question 👍

flake8_type_checking/checker.py Outdated Show resolved Hide resolved
@Daverball Daverball merged commit 7cf333d into snok:main Dec 12, 2024
6 checks passed
@Daverball Daverball deleted the refactor/use-full-name-lookup-for-literal-and-annotated branch December 12, 2024 09:24
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.

Special case Annotated when walking annotation expressions
2 participants