Skip to content

Commit 1c2c820

Browse files
ashm-devpre-commit-ci[bot]abdulaev-sh-m
authored
Add Typing for EmailField with Support for String Set and Get Types (#2317)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shamil <[email protected]>
1 parent 0921fa2 commit 1c2c820

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django-stubs/db/models/fields/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ class SlugField(CharField[_ST, _GT]):
356356
allow_unicode: bool = ...,
357357
) -> None: ...
358358

359-
class EmailField(CharField[_ST, _GT]): ...
359+
class EmailField(CharField[_ST, _GT]):
360+
_pyi_private_set_type: str | Combinable
360361

361362
class URLField(CharField[_ST, _GT]):
362363
def __init__(

0 commit comments

Comments
 (0)