mirror of https://github.com/zulip/zulip.git
mypy: Remove unnecessary blocks for strict optional=True.
This commit is contained in:
parent
058ee1ce1e
commit
d5e7b9599d
15
mypy.ini
15
mypy.ini
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue