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

Method test_alias

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

Source from the content-addressed store, hash-verified

316 issubclass(int, Self)
317
318 def test_alias(self):
319 # TypeAliases are not actually part of the spec
320 alias_1 = Tuple[Self, Self]
321 alias_2 = List[Self]
322 alias_3 = ClassVar[Self]
323 self.assertEqual(get_args(alias_1), (Self, Self))
324 self.assertEqual(get_args(alias_2), (Self,))
325 self.assertEqual(get_args(alias_3), (Self,))
326
327
328class LiteralStringTests(BaseTestCase):

Callers

nothing calls this directly

Calls 2

get_argsFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected