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 support for auto-quoting when annotations contain quotes #9137

Open
charliermarsh opened this issue Dec 14, 2023 · 0 comments · May be fixed by #11811
Open

Add support for auto-quoting when annotations contain quotes #9137

charliermarsh opened this issue Dec 14, 2023 · 0 comments · May be fixed by #11811
Labels
fixes Related to suggested fixes for violations

Comments

@charliermarsh
Copy link
Member

Right now, given:

from django.contrib.auth.models import AbstractBaseUser

def foo(
    self, user: AbstractBaseUser['int'], view: 'type[CondorBaseViewSet]'
):
    pass

We avoid providing a fix for AbstractBaseUser since it contains a quote in the expanded expression.

@charliermarsh charliermarsh added the fixes Related to suggested fixes for violations label Dec 14, 2023
@Glyphack Glyphack linked a pull request Jun 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant