mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
realms: Use modern union syntax for property_types.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
73783f5519
commit
f52ec0559c
@@ -942,7 +942,7 @@ class RealmTest(ZulipTestCase):
|
||||
|
||||
def test_invalid_integer_attribute_values(self) -> None:
|
||||
integer_values = [
|
||||
key for key, value in Realm.property_types.items() if value in (int, (int, type(None)))
|
||||
key for key, value in Realm.property_types.items() if value in (int, int | None)
|
||||
]
|
||||
|
||||
invalid_values = dict(
|
||||
|
||||
Reference in New Issue
Block a user