Skip to content

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

@charliermarsh

Description

@charliermarsh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixesRelated to suggested fixes for violations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions