mypy: Remove unnecessary blocks for strict optional=True.

This commit is contained in:
jkiely 2018-05-17 13:16:27 -04:00 committed by Tim Abbott
parent 058ee1ce1e
commit d5e7b9599d
1 changed files with 0 additions and 15 deletions

View File

@ -307,21 +307,6 @@ strict_optional = False
# One change required?
[mypy-zerver.lib.notifications] # line 122: Using group from regex, which might return None
strict_optional = True
[mypy-zerver.lib.avatar] # str vs Optional[str]
strict_optional = True
[mypy-zerver.lib.soft_deactivation]
strict_optional = True
[mypy-zerver.lib.events] # signup_notifications_stream is Optional, but accessing id property
strict_optional = True
[mypy-zerver.lib.exceptions] #21: error: Return type of "__reduce_ex__" incompatible with supertype "object"
strict_optional = True
[mypy-zerver.lib.bugdown.api_arguments_table_generator] #18: error: Item "None" of "Optional[Dict[str, Any]]" has no attribute "items"
strict_optional = True
[mypy-zerver.lib.message] #868: error: Unsupported operand types for - ("Optional[int]" and "int")
strict_optional = True
[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