mirror of https://github.com/zulip/zulip.git
test_typed_endpoint: Inline pointless type variable.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f04e7fc625
commit
c2214b3904
|
@ -42,10 +42,7 @@ class TestEndpoint(ZulipTestCase):
|
||||||
"""This test is only needed because we don't
|
"""This test is only needed because we don't
|
||||||
have coverage of is_optional in Python 3.11.
|
have coverage of is_optional in Python 3.11.
|
||||||
"""
|
"""
|
||||||
type = cast(Type[Optional[str]], Optional[str])
|
self.assertTrue(is_optional(cast(Type[Optional[str]], Optional[str])))
|
||||||
self.assertTrue(is_optional(type))
|
|
||||||
|
|
||||||
type = str
|
|
||||||
self.assertFalse(is_optional(str))
|
self.assertFalse(is_optional(str))
|
||||||
|
|
||||||
def test_coerce(self) -> None:
|
def test_coerce(self) -> None:
|
||||||
|
|
Loading…
Reference in New Issue