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

Remove FieldDoesNotExist from where it's not present at runtime #2313

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading