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