Skip to content

Commit 9a50159

Browse files
authored
Merge pull request #2018 from kkirsche/patch-1
Add return type to `fields.Email.__init__` so that it's not untyped
2 parents cf45177 + 15e2dd7 commit 9a50159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/marshmallow/fields.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ class Email(String):
17311731
#: Default error messages.
17321732
default_error_messages = {"invalid": "Not a valid email address."}
17331733

1734-
def __init__(self, *args, **kwargs):
1734+
def __init__(self, *args, **kwargs) -> None:
17351735
super().__init__(*args, **kwargs)
17361736
# Insert validation into self.validators so that multiple errors can be stored.
17371737
validator = validate.Email(error=self.error_messages["invalid"])

0 commit comments

Comments
 (0)