]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commit
Fix string handling of DecimalElement (#95)
authorheeplr <32984777+heeplr@users.noreply.github.com>
Thu, 27 Nov 2025 19:52:54 +0000 (20:52 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Nov 2025 19:52:54 +0000 (20:52 +0100)
commitb3f9e39c0ef869405fcf56454f4354fbd550fb0b
treea6f7fa238d1faefb2a800e3a3202e6af38cc8f96
parent47f92c9c70fe57c9a240fdc26af3d209ae3cbda7
Fix string handling of DecimalElement (#95)

* remove __str__() to ensure string type by falling back to inherited StringElement.__str__()
* wrap __format__ method of _value
* enforce Decimal() type in __init__

Co-authored-by: Daniel Hiepler <d-git@coderdu.de>
drafthorse/models/elements.py