@@ -2985,7 +2985,7 @@ def check_depr_star(self, pnames, fn, /, *args, name=None, **kwds):
2985
2985
regex = (
2986
2986
fr"Passing( more than)?( [0-9]+)? positional argument(s)? to "
2987
2987
fr"{ re .escape (name )} \(\) is deprecated. Parameters? { pnames } will "
2988
- fr"become( a)? keyword-only parameters? in Python 3\.14 "
2988
+ fr"become( a)? keyword-only parameters? in Python 3\.37 "
2989
2989
)
2990
2990
self .check_depr (regex , fn , * args , ** kwds )
2991
2991
@@ -2998,7 +2998,7 @@ def check_depr_kwd(self, pnames, fn, *args, name=None, **kwds):
2998
2998
regex = (
2999
2999
fr"Passing keyword argument{ pl } { pnames } to "
3000
3000
fr"{ re .escape (name )} \(\) is deprecated. Parameter{ pl } { pnames } "
3001
- fr"will become positional-only in Python 3\.14 ."
3001
+ fr"will become positional-only in Python 3\.37 ."
3002
3002
)
3003
3003
self .check_depr (regex , fn , * args , ** kwds )
3004
3004
@@ -3782,9 +3782,9 @@ def test_depr_star_multi(self):
3782
3782
fn ("a" , b = "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" , h = "h" )
3783
3783
errmsg = (
3784
3784
"Passing more than 1 positional argument to depr_star_multi() is deprecated. "
3785
- "Parameter 'b' will become a keyword-only parameter in Python 3.16 . "
3786
- "Parameters 'c' and 'd' will become keyword-only parameters in Python 3.15 . "
3787
- "Parameters 'e', 'f' and 'g' will become keyword-only parameters in Python 3.14 ." )
3785
+ "Parameter 'b' will become a keyword-only parameter in Python 3.39 . "
3786
+ "Parameters 'c' and 'd' will become keyword-only parameters in Python 3.38 . "
3787
+ "Parameters 'e', 'f' and 'g' will become keyword-only parameters in Python 3.37 ." )
3788
3788
check = partial (self .check_depr , re .escape (errmsg ), fn )
3789
3789
check ("a" , "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" , h = "h" )
3790
3790
check ("a" , "b" , "c" , d = "d" , e = "e" , f = "f" , g = "g" , h = "h" )
@@ -3883,9 +3883,9 @@ def test_depr_kwd_multi(self):
3883
3883
fn ("a" , "b" , "c" , "d" , "e" , "f" , "g" , h = "h" )
3884
3884
errmsg = (
3885
3885
"Passing keyword arguments 'b', 'c', 'd', 'e', 'f' and 'g' to depr_kwd_multi() is deprecated. "
3886
- "Parameter 'b' will become positional-only in Python 3.14 . "
3887
- "Parameters 'c' and 'd' will become positional-only in Python 3.15 . "
3888
- "Parameters 'e', 'f' and 'g' will become positional-only in Python 3.16 ." )
3886
+ "Parameter 'b' will become positional-only in Python 3.37 . "
3887
+ "Parameters 'c' and 'd' will become positional-only in Python 3.38 . "
3888
+ "Parameters 'e', 'f' and 'g' will become positional-only in Python 3.39 ." )
3889
3889
check = partial (self .check_depr , re .escape (errmsg ), fn )
3890
3890
check ("a" , "b" , "c" , "d" , "e" , "f" , g = "g" , h = "h" )
3891
3891
check ("a" , "b" , "c" , "d" , "e" , f = "f" , g = "g" , h = "h" )
@@ -3900,17 +3900,17 @@ def test_depr_multi(self):
3900
3900
self .assertRaises (TypeError , fn , "a" , "b" , "c" , "d" , "e" , "f" , "g" )
3901
3901
errmsg = (
3902
3902
"Passing more than 4 positional arguments to depr_multi() is deprecated. "
3903
- "Parameter 'e' will become a keyword-only parameter in Python 3.15 . "
3904
- "Parameter 'f' will become a keyword-only parameter in Python 3.14 ." )
3903
+ "Parameter 'e' will become a keyword-only parameter in Python 3.38 . "
3904
+ "Parameter 'f' will become a keyword-only parameter in Python 3.37 ." )
3905
3905
check = partial (self .check_depr , re .escape (errmsg ), fn )
3906
3906
check ("a" , "b" , "c" , "d" , "e" , "f" , g = "g" )
3907
3907
check ("a" , "b" , "c" , "d" , "e" , f = "f" , g = "g" )
3908
3908
fn ("a" , "b" , "c" , "d" , e = "e" , f = "f" , g = "g" )
3909
3909
fn ("a" , "b" , "c" , d = "d" , e = "e" , f = "f" , g = "g" )
3910
3910
errmsg = (
3911
3911
"Passing keyword arguments 'b' and 'c' to depr_multi() is deprecated. "
3912
- "Parameter 'b' will become positional-only in Python 3.14 . "
3913
- "Parameter 'c' will become positional-only in Python 3.15 ." )
3912
+ "Parameter 'b' will become positional-only in Python 3.37 . "
3913
+ "Parameter 'c' will become positional-only in Python 3.38 ." )
3914
3914
check = partial (self .check_depr , re .escape (errmsg ), fn )
3915
3915
check ("a" , "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" )
3916
3916
check ("a" , b = "b" , c = "c" , d = "d" , e = "e" , f = "f" , g = "g" )
0 commit comments