We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b222b3d commit ad0431dCopy full SHA for ad0431d
Lib/test/test_typing.py
@@ -2802,11 +2802,12 @@ def __init__(self, attr: T) -> None:
2802
self.assertEqual(deepcopy(ci).attr, 1)
2803
self.assertEqual(ci.__orig_class__, C[int])
2804
2805
- def test_copy_with(self):
+ def test_parameter_propagation(self):
2806
# bpo-46581
2807
P = ParamSpec('P')
2808
original = Callable[P, int]
2809
- copied = original.copy_with((P, int))
+ self.assertEqual(original.__parameters__, (P,))
2810
+ copied = original[P]
2811
self.assertEqual(original.__parameters__, copied.__parameters__)
2812
2813
def test_weakref_all(self):
0 commit comments