Skip to content

Commit

Permalink
Remove FieldDoesNotExist from where it's not present at runtime (#2313
Browse files Browse the repository at this point in the history
)
  • Loading branch information
flaeppe authored Aug 2, 2024
1 parent 2b6fdac commit c9adf6b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion django-stubs/db/models/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ from .fields import DecimalField as DecimalField
from .fields import DurationField as DurationField
from .fields import EmailField as EmailField
from .fields import Field as Field
from .fields import FieldDoesNotExist as FieldDoesNotExist
from .fields import FilePathField as FilePathField
from .fields import FloatField as FloatField
from .fields import GenericIPAddressField as GenericIPAddressField
Expand Down
1 change: 0 additions & 1 deletion django-stubs/db/models/fields/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ from typing import Any, ClassVar, Generic, Literal, Protocol, TypeVar, overload,
from django import forms
from django.core import validators # due to weird mypy.stubtest error
from django.core.checks import CheckMessage
from django.core.exceptions import FieldDoesNotExist as FieldDoesNotExist
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.models import Model
from django.db.models.expressions import Col, Combinable, Expression
Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ django.contrib.gis.db.models.Field.get_pk_value_on_save
django.contrib.gis.db.models.Field.rel_db_type
django.contrib.gis.db.models.Field.select_format
django.contrib.gis.db.models.Field.unique
django.contrib.gis.db.models.FieldDoesNotExist
django.contrib.gis.db.models.FileField.__get__
django.contrib.gis.db.models.FileField.attr_class
django.contrib.gis.db.models.FileField.contribute_to_class
Expand Down Expand Up @@ -701,7 +700,6 @@ django.db.models.Field.get_pk_value_on_save
django.db.models.Field.rel_db_type
django.db.models.Field.select_format
django.db.models.Field.unique
django.db.models.FieldDoesNotExist
django.db.models.FileField.__get__
django.db.models.FileField.attr_class
django.db.models.FileField.contribute_to_class
Expand Down Expand Up @@ -907,7 +905,6 @@ django.db.models.fields.Field.get_pk_value_on_save
django.db.models.fields.Field.rel_db_type
django.db.models.fields.Field.select_format
django.db.models.fields.Field.unique
django.db.models.fields.FieldDoesNotExist
django.db.models.fields.FilePathField.formfield
django.db.models.fields.FloatField.formfield
django.db.models.fields.GenericIPAddressField.formfield
Expand Down

0 comments on commit c9adf6b

Please sign in to comment.