@@ -2979,7 +2979,7 @@ def check_depr_star(self, pnames, fn, /, *args, name=None, **kwds):
2979
2979
regex = (
2980
2980
fr"Passing( more than)?( [0-9]+)? positional argument(s)? to "
2981
2981
fr"{ re .escape (name )} \(\) is deprecated. Parameters? { pnames } will "
2982
- fr"become( a)? keyword-only parameters? in Python 3\.37 "
2982
+ fr"become( a)? keyword-only parameters? in Python 3\.14 "
2983
2983
)
2984
2984
self .check_depr (regex , fn , * args , ** kwds )
2985
2985
@@ -2992,7 +2992,7 @@ def check_depr_kwd(self, pnames, fn, *args, name=None, **kwds):
2992
2992
regex = (
2993
2993
fr"Passing keyword argument{ pl } { pnames } to "
2994
2994
fr"{ re .escape (name )} \(\) is deprecated. Parameter{ pl } { pnames } "
2995
- fr"will become positional-only in Python 3\.37 ."
2995
+ fr"will become positional-only in Python 3\.14 ."
2996
2996
)
2997
2997
self .check_depr (regex , fn , * args , ** kwds )
2998
2998
@@ -3803,9 +3803,9 @@ def test_depr_star_multi(self):
3803
3803
fn ("a" , b = "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" , h = "h" )
3804
3804
errmsg = (
3805
3805
"Passing more than 1 positional argument to depr_star_multi() is deprecated. "
3806
- "Parameter 'b' will become a keyword-only parameter in Python 3.39 . "
3807
- "Parameters 'c' and 'd' will become keyword-only parameters in Python 3.38 . "
3808
- "Parameters 'e', 'f' and 'g' will become keyword-only parameters in Python 3.37 ." )
3806
+ "Parameter 'b' will become a keyword-only parameter in Python 3.16 . "
3807
+ "Parameters 'c' and 'd' will become keyword-only parameters in Python 3.15 . "
3808
+ "Parameters 'e', 'f' and 'g' will become keyword-only parameters in Python 3.14 ." )
3809
3809
check = partial (self .check_depr , re .escape (errmsg ), fn )
3810
3810
check ("a" , "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" , h = "h" )
3811
3811
check ("a" , "b" , "c" , d = "d" , e = "e" , f = "f" , g = "g" , h = "h" )
@@ -3904,9 +3904,9 @@ def test_depr_kwd_multi(self):
3904
3904
fn ("a" , "b" , "c" , "d" , "e" , "f" , "g" , h = "h" )
3905
3905
errmsg = (
3906
3906
"Passing keyword arguments 'b', 'c', 'd', 'e', 'f' and 'g' to depr_kwd_multi() is deprecated. "
3907
- "Parameter 'b' will become positional-only in Python 3.37 . "
3908
- "Parameters 'c' and 'd' will become positional-only in Python 3.38 . "
3909
- "Parameters 'e', 'f' and 'g' will become positional-only in Python 3.39 ." )
3907
+ "Parameter 'b' will become positional-only in Python 3.14 . "
3908
+ "Parameters 'c' and 'd' will become positional-only in Python 3.15 . "
3909
+ "Parameters 'e', 'f' and 'g' will become positional-only in Python 3.16 ." )
3910
3910
check = partial (self .check_depr , re .escape (errmsg ), fn )
3911
3911
check ("a" , "b" , "c" , "d" , "e" , "f" , g = "g" , h = "h" )
3912
3912
check ("a" , "b" , "c" , "d" , "e" , f = "f" , g = "g" , h = "h" )
@@ -3921,17 +3921,17 @@ def test_depr_multi(self):
3921
3921
self .assertRaises (TypeError , fn , "a" , "b" , "c" , "d" , "e" , "f" , "g" )
3922
3922
errmsg = (
3923
3923
"Passing more than 4 positional arguments to depr_multi() is deprecated. "
3924
- "Parameter 'e' will become a keyword-only parameter in Python 3.38 . "
3925
- "Parameter 'f' will become a keyword-only parameter in Python 3.37 ." )
3924
+ "Parameter 'e' will become a keyword-only parameter in Python 3.15 . "
3925
+ "Parameter 'f' will become a keyword-only parameter in Python 3.14 ." )
3926
3926
check = partial (self .check_depr , re .escape (errmsg ), fn )
3927
3927
check ("a" , "b" , "c" , "d" , "e" , "f" , g = "g" )
3928
3928
check ("a" , "b" , "c" , "d" , "e" , f = "f" , g = "g" )
3929
3929
fn ("a" , "b" , "c" , "d" , e = "e" , f = "f" , g = "g" )
3930
3930
fn ("a" , "b" , "c" , d = "d" , e = "e" , f = "f" , g = "g" )
3931
3931
errmsg = (
3932
3932
"Passing keyword arguments 'b' and 'c' to depr_multi() is deprecated. "
3933
- "Parameter 'b' will become positional-only in Python 3.37 . "
3934
- "Parameter 'c' will become positional-only in Python 3.38 ." )
3933
+ "Parameter 'b' will become positional-only in Python 3.14 . "
3934
+ "Parameter 'c' will become positional-only in Python 3.15 ." )
3935
3935
check = partial (self .check_depr , re .escape (errmsg ), fn )
3936
3936
check ("a" , "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" )
3937
3937
check ("a" , b = "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" )
0 commit comments