Skip to content

Conversation

browniebroke
Copy link
Collaborator

@browniebroke browniebroke commented Aug 29, 2024

Description

The type of min/max values for DecimalField should be Decimal objects since #8972 and we turn this into a Python warning in #9367. However, @terencehonles pointed out that integers should be accepted.

Update the warning to ignore integers and clarify in the docs what types are accepted.

@auvipy auvipy self-requested a review August 30, 2024 08:58
@lovelydinosaur
Copy link
Contributor

#8972 (comment) that integers should be accepted, but that might be a separate discussion...

Good call, yep.

@browniebroke browniebroke changed the title Use Decimal for min/max values of DecimalField in tests & docs Accept integers as min/max values of DecimalField Sep 6, 2024
@browniebroke browniebroke force-pushed the decimal-field-min-max-values-types branch from d2ab1ef to 9fef0f6 Compare September 6, 2024 15:45
@auvipy auvipy merged commit 125ad42 into encode:master Sep 7, 2024
7 checks passed
@browniebroke browniebroke deleted the decimal-field-min-max-values-types branch September 7, 2024 16:03
@browniebroke browniebroke added this to the 3.16 milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants