MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_alias

Method test_alias

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

get_argsFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected