@@ -1205,21 +1205,21 @@ def __new__(cls, value):
12051205def __init__ (self ,* args ,** kwds ):
12061206pass
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 :
12181218return start
12191219try :
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
12241224return last + 1
12251225else :
@@ -1233,7 +1233,7 @@ def _generate_next_value_(name, start, count, last_value):
12331233DeprecationWarning ,
12341234stacklevel = 3 ,
12351235 )
1236- for v in last_value :
1236+ for v in last_values :
12371237try :
12381238return v + 1
12391239except 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 """
13941394if not count :
13951395return start if start is not None else 1