Skip to content

NullBooleanField fixer can remove still-used import #347

@adamchainz

Description

@adamchainz

Python Version

3.11

Django Version

No response

Package Version

1.13.0

Description

For example:

 from django.db.models import BooleanField
-from django.db.models import NullBooleanField

class MyNullBooleanField(NullBooleanField):
    ...

django-upgrade shouldn't break code, so if we can prevent such import removals from happening when their name is used in some form, that would be good.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions