test_narrow: Fix strict_optional errors.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-04 16:03:01 -07:00
committed by Tim Abbott
parent 3126243245
commit dd7082e466
2 changed files with 1 additions and 3 deletions

View File

@@ -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"

View File

@@ -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,