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 77b411b commit 7e099c5Copy full SHA for 7e099c5
Lib/test/test_typing.py
@@ -5177,6 +5177,18 @@ class C(B[int]):
5177
x = pickle.loads(z)
5178
self.assertEqual(s, x)
5179
5180
+ # Test ParamSpec args and kwargs
5181
+ global PP
5182
+ PP = ParamSpec('PP')
5183
+ for thing in [PP.args, PP.kwargs]:
5184
+ for proto in range(pickle.HIGHEST_PROTOCOL + 1):
5185
+ with self.subTest(thing=thing, proto=proto):
5186
+ self.assertEqual(
5187
+ pickle.loads(pickle.dumps(thing, proto)),
5188
+ thing,
5189
+ )
5190
+ del PP
5191
+
5192
def test_copy_and_deepcopy(self):
5193
T = TypeVar('T')
5194
class Node(Generic[T]): ...
0 commit comments