mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
mypy: Fix strict-optional errors for test files.
Fix mypy --strict-optional errors in zerver/tests
This commit is contained in:
@@ -824,7 +824,7 @@ class SubscriptionPropertiesTest(ZulipTestCase):
|
||||
found_sub = sub
|
||||
break
|
||||
|
||||
self.assertIsNotNone(found_sub)
|
||||
assert(found_sub is not None)
|
||||
self.assertEqual(found_sub['color'], new_color)
|
||||
|
||||
new_subs.remove(found_sub)
|
||||
|
||||
Reference in New Issue
Block a user