mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
test_narrow: Fix strict_optional errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3126243245
commit
dd7082e466
2
mypy.ini
2
mypy.ini
@@ -40,8 +40,6 @@ strict_optional = True
|
||||
|
||||
# Tests (may be many issues in file; comment is just one error noted)
|
||||
|
||||
[mypy-zerver/tests/test_narrow] #515: error: Incompatible types in assignment (expression has type "None", variable has type "int")
|
||||
strict_optional = False
|
||||
[mypy-zerver/tests/test_logging_handlers] #73: error: Argument 7 to "makeRecord" of "Logger" has incompatible type "Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]"; expected "Union[Tuple[type, BaseException, TracebackType], Tuple[None, None, None], None]"
|
||||
strict_optional = False
|
||||
[mypy-zerver/tests/test_decorators] #1322: error: Item "None" of "Optional[Match[str]]" has no attribute "groupdict"
|
||||
|
||||
@@ -863,7 +863,7 @@ class PostProcessTest(ZulipTestCase):
|
||||
)
|
||||
|
||||
# left-sided query anchored to the right
|
||||
anchor = None
|
||||
anchor = LARGER_THAN_MAX_MESSAGE_ID
|
||||
verify(
|
||||
in_ids=[900, 1000],
|
||||
num_before=2, num_after=0,
|
||||
|
||||
Reference in New Issue
Block a user