Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mypy.ini: Remove some unnecessary strict_optional = False lines.
Anders Kaseorg817dbde29ae1
diff --git a/mypy.ini b/mypy.iniindex 079f8b16e56..1219d77e07a 100644--- a/mypy.ini+++ b/mypy.ini@@ -66,9 +66,6 @@ strict_optional = False# One change required?-[mypy-zerver.migrations.0077_add_file_name_field_to_realm_emoji] #73: error: Argument 2 to "upload_files" of "Uploader" has incompatible type "Optional[bytes]"; expected "bytes"-strict_optional = False-[mypy-zilencer.management.commands.add_new_realm] #22: error: List item 0 has incompatible type "Optional[Stream]"; expected "Stream"strict_optional = False@@ -81,8 +78,6 @@ strict_optional = False# Tests (may be many issues in file; comment is just one error noted)-[mypy-zerver/tests/test_tornado] #202: error: Item "None" of "Optional[Morsel[Any]]" has no attribute "coded_value"-strict_optional = False[mypy-zerver/tests/test_slack_importer] #70: error: Argument 1 to "MockResponse" has incompatible type "None"; expected "Dict[str, Any]"strict_optional = False[mypy-zerver/tests/test_service_bot_system] #312: error: Argument 1 to "set_bot_config" has incompatible type "Optional[UserProfile]"; expected "UserProfile"@@ -105,8 +100,6 @@ strict_optional = Falsestrict_optional = False[mypy-zerver/tests/test_events] #1365: error: Argument 2 to "do_set_realm_notifications_stream" has incompatible type "Optional[Stream]"; expected "Stream"strict_optional = False-[mypy-zerver/tests/test_docs] #131: error: Argument 1 to "isfile" has incompatible type "Optional[str]"; expected "Union[bytes, str]"-strict_optional = False# General exclusions to work on