MCPcopy Create free account
hub / github.com/RustPython/RustPython / test_usage_with_kwargs

Method test_usage_with_kwargs

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

Source from the content-addressed store, hash-verified

1219 Unpack()
1220
1221 def test_usage_with_kwargs(self):
1222 Movie = TypedDict('Movie', {'name': str, 'year': int})
1223 def foo(**kwargs: Unpack[Movie]): ...
1224 self.assertEqual(repr(foo.__annotations__['kwargs']),
1225 f"typing.Unpack[{__name__}.Movie]")
1226
1227 def test_builtin_tuple(self):
1228 Ts = TypeVarTuple("Ts")

Callers

nothing calls this directly

Calls 3

TypedDictFunction · 0.90
reprFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected