We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ParamSpecArgs
ParamSpecKwargs
1 parent b69b9da commit 4c130c9Copy full SHA for 4c130c9
Lib/test/test_typing.py
@@ -4838,6 +4838,18 @@ class C(B[int]):
4838
x = pickle.loads(z)
4839
self.assertEqual(s, x)
4840
4841
+ # Test ParamSpec args and kwargs
4842
+ global PP
4843
+ PP = ParamSpec('PP')
4844
+ for thing in [PP.args, PP.kwargs]:
4845
+ for proto in range(pickle.HIGHEST_PROTOCOL + 1):
4846
+ with self.subTest(thing=thing, proto=proto):
4847
+ self.assertEqual(
4848
+ pickle.loads(pickle.dumps(thing, proto)),
4849
+ thing,
4850
+ )
4851
+ del PP
4852
+
4853
def test_copy_and_deepcopy(self):
4854
T = TypeVar('T')
4855
class Node(Generic[T]): ...
0 commit comments