@@ -1205,21 +1205,21 @@ def __new__(cls, value):
12051205 def __init__ (self , * args , ** kwds ):
12061206 pass
12071207
1208- def _generate_next_value_ (name , start , count , last_value ):
1208+ def _generate_next_value_ (name , start , count , last_values ):
12091209 """
12101210 Generate the next value when not given.
12111211
12121212 name: the name of the member
12131213 start: the initial start value or None
12141214 count: the number of existing members
1215- last_value : the list of values assigned
1215+ last_values : the list of values assigned
12161216 """
1217- if not last_value :
1217+ if not last_values :
12181218 return start
12191219 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 ]:
12231223 # no difference between old and new methods
12241224 return last + 1
12251225 else :
@@ -1233,7 +1233,7 @@ def _generate_next_value_(name, start, count, last_value):
12331233 DeprecationWarning ,
12341234 stacklevel = 3 ,
12351235 )
1236- for v in last_value :
1236+ for v in last_values :
12371237 try :
12381238 return v + 1
12391239 except TypeError :
@@ -1389,7 +1389,7 @@ def _generate_next_value_(name, start, count, last_values):
13891389 name: the name of the member
13901390 start: the initial start value or None
13911391 count: the number of existing members
1392- last_value : the last value assigned or None
1392+ last_values : the last value assigned or None
13931393 """
13941394 if not count :
13951395 return start if start is not None else 1
0 commit comments