@@ -1218,21 +1218,21 @@ def __new__(cls, value):
1218
1218
def __init__ (self , * args , ** kwds ):
1219
1219
pass
1220
1220
1221
- def _generate_next_value_ (name , start , count , last_value ):
1221
+ def _generate_next_value_ (name , start , count , last_values ):
1222
1222
"""
1223
1223
Generate the next value when not given.
1224
1224
1225
1225
name: the name of the member
1226
1226
start: the initial start value or None
1227
1227
count: the number of existing members
1228
- last_value : the list of values assigned
1228
+ last_values : the list of values assigned
1229
1229
"""
1230
- if not last_value :
1230
+ if not last_values :
1231
1231
return start
1232
1232
try :
1233
- last = last_value [- 1 ]
1234
- last_value .sort ()
1235
- if last == last_value [- 1 ]:
1233
+ last = last_values [- 1 ]
1234
+ last_values .sort ()
1235
+ if last == last_values [- 1 ]:
1236
1236
# no difference between old and new methods
1237
1237
return last + 1
1238
1238
else :
@@ -1246,7 +1246,7 @@ def _generate_next_value_(name, start, count, last_value):
1246
1246
DeprecationWarning ,
1247
1247
stacklevel = 3 ,
1248
1248
)
1249
- for v in last_value :
1249
+ for v in last_values :
1250
1250
try :
1251
1251
return v + 1
1252
1252
except TypeError :
@@ -1402,7 +1402,7 @@ def _generate_next_value_(name, start, count, last_values):
1402
1402
name: the name of the member
1403
1403
start: the initial start value or None
1404
1404
count: the number of existing members
1405
- last_value : the last value assigned or None
1405
+ last_values : the last value assigned or None
1406
1406
"""
1407
1407
if not count :
1408
1408
return start if start is not None else 1
0 commit comments