Skip to content

Commit

Permalink
Fix: mypy failed because of invalid type value
Browse files Browse the repository at this point in the history
Mypy failed because a value should be convert to Gigabytes before using the
function gigabyte_to_megabyte.
Solution: Convert the number to Gigabytes before using the function
  • Loading branch information
ajin authored and ajin committed Apr 10, 2024
1 parent 3122f60 commit 92df358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aleph_message/models/execution/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def is_read_only(self):

class EphemeralVolumeSize(ConstrainedInt):
gt = 0
le = gigabyte_to_mebibyte(10) # Limit to 10 GB
le = gigabyte_to_mebibyte(Gigabytes(10)) # Limit to 10 GB
strict = True


Expand Down

0 comments on commit 92df358

Please sign in to comment.