@@ -1205,21 +1205,21 @@ def __new__(cls, value):
1205
1205
def __init__ (self , * args , ** kwds ):
1206
1206
pass
1207
1207
1208
- def _generate_next_value_ (name , start , count , last_value ):
1208
+ def _generate_next_value_ (name , start , count , last_values ):
1209
1209
"""
1210
1210
Generate the next value when not given.
1211
1211
1212
1212
name: the name of the member
1213
1213
start: the initial start value or None
1214
1214
count: the number of existing members
1215
- last_value : the list of values assigned
1215
+ last_values : the list of values assigned
1216
1216
"""
1217
- if not last_value :
1217
+ if not last_values :
1218
1218
return start
1219
1219
try :
1220
- last = last_value [- 1 ]
1221
- last_value .sort ()
1222
- if last == last_value [- 1 ]:
1220
+ last = last_values [- 1 ]
1221
+ last_values .sort ()
1222
+ if last == last_values [- 1 ]:
1223
1223
# no difference between old and new methods
1224
1224
return last + 1
1225
1225
else :
@@ -1233,7 +1233,7 @@ def _generate_next_value_(name, start, count, last_value):
1233
1233
DeprecationWarning ,
1234
1234
stacklevel = 3 ,
1235
1235
)
1236
- for v in last_value :
1236
+ for v in last_values :
1237
1237
try :
1238
1238
return v + 1
1239
1239
except TypeError :
@@ -1389,7 +1389,7 @@ def _generate_next_value_(name, start, count, last_values):
1389
1389
name: the name of the member
1390
1390
start: the initial start value or None
1391
1391
count: the number of existing members
1392
- last_value : the last value assigned or None
1392
+ last_values : the last value assigned or None
1393
1393
"""
1394
1394
if not count :
1395
1395
return start if start is not None else 1
0 commit comments