Skip to content

Commit 5a8e7b3

Browse files
Allowing set in model_to_dict's exclude (#1952)
* Allowing set in model_to_dict exclude * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6d07585 commit 5a8e7b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/forms/models.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ from django.forms.formsets import BaseFormSet
1414
from django.forms.renderers import BaseRenderer
1515
from django.forms.utils import ErrorList, _DataT, _FilesT
1616
from django.forms.widgets import Widget
17-
from django.utils.datastructures import _IndexableCollection, _ListOrTuple, _PropertyDescriptor
17+
from django.utils.datastructures import _IndexableCollection, _PropertyDescriptor
1818
from django.utils.functional import _StrOrPromise
1919
from typing_extensions import TypeAlias
2020

2121
ALL_FIELDS: Literal["__all__"]
2222

23-
_Fields: TypeAlias = _ListOrTuple[str] | Literal["__all__"]
23+
_Fields: TypeAlias = Collection[str] | Literal["__all__"]
2424
_Widgets: TypeAlias = dict[str, type[Widget] | Widget]
2525

2626
_Labels: TypeAlias = dict[str, str]

0 commit comments

Comments
 (0)