MCPcopy Index your code
hub / github.com/python/cpython / test_alias

Method test_alias

Lib/test/test_typing.py:375–381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

373 issubclass(int, LiteralString)
374
375 def test_alias(self):
376 alias_1 = Tuple[LiteralString, LiteralString]
377 alias_2 = List[LiteralString]
378 alias_3 = ClassVar[LiteralString]
379 self.assertEqual(get_args(alias_1), (LiteralString, LiteralString))
380 self.assertEqual(get_args(alias_2), (LiteralString,))
381 self.assertEqual(get_args(alias_3), (LiteralString,))
382
383
384class TypeVarTests(BaseTestCase):

Callers

nothing calls this directly

Calls 2

get_argsFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected