Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

forms: Fix to_python method signature.

Zixuan James Li56e22e1a9235
diff --git a/zerver/forms.py b/zerver/forms.py
index 85741b3aa43..0b3bde3bee9 100644
--- a/zerver/forms.py
+++ b/zerver/forms.py
@@ -511,7 +511,7 @@ class AuthenticationTokenForm(TwoFactorAuthenticationTokenForm):
class MultiEmailField(forms.Field):
- def to_python(self, emails: str) -> List[str]:
+ def to_python(self, emails: Optional[str]) -> List[str]:
"""Normalize data to a list of strings."""
if not emails:
return []