Skip to content

Commit 883c8b9

Browse files
ref: handle deconstruct() returning a sequence in bitfield model (#59097)
this is needed to upgrade django-stubs + mypy <!-- Describe your PR here. -->
1 parent f367397 commit 883c8b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitfield/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def to_python(self, value):
147147

148148
def deconstruct(self):
149149
name, path, args, kwargs = super().deconstruct()
150-
args.insert(0, self._arg_flags)
150+
args = [self._arg_flags, *args]
151151
return name, path, args, kwargs
152152

153153

0 commit comments

Comments
 (0)