Skip to content

Commit

Permalink
Number types should be able to match %d
Browse files Browse the repository at this point in the history
  • Loading branch information
keenanlang committed Jul 22, 2024
1 parent f9b5944 commit 3248e49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gestalt/Type.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ def __init__(self, data):

def val(self):
return int(super().val())

def __format__(self, format_spec):
return self.val().__format__(format_spec)


class Double(DataType):
Expand Down

0 comments on commit 3248e49

Please sign in to comment.