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

Method test_usage_with_kwargs

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

TypedDictFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected