Skip to content

Commit

Permalink
Merge pull request #94 from Ethanscharlie/patch-1
Browse files Browse the repository at this point in the history
Fix Python 3.10 casting policy change
  • Loading branch information
fgallaire authored Mar 20, 2023
2 parents 12f42df + f2fbf4d commit 36a2f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def setup(self):
dialog.float_valid)
elif isinstance(value, int):
field = QSpinBox(self)
field.setRange(-1e9, 1e9)
field.setRange(int(-1e9), int(1e9))
field.setValue(value)
elif isinstance(value, datetime.datetime):
field = QDateTimeEdit(self)
Expand Down

0 comments on commit 36a2f71

Please sign in to comment.