Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future fix - Implement Union[int, float] for configclasses.RangeSubFIlter #9

Open
BuongiornoTexas opened this issue Apr 20, 2019 · 0 comments
Assignees

Comments

@BuongiornoTexas
Copy link
Owner

Pydantic will convert integer values to floats as part of constructor input validation. The range_clause method will try to convert integer values back to integer form before generating the range clause. A future update may address this issues - requires pydantic to support dataclass validators (0.24+?). When this functionality is available, convert the type of ranges to List[List[Union[int, float]]] and add an appropriate validator.

@BuongiornoTexas BuongiornoTexas self-assigned this Apr 20, 2019
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

No branches or pull requests

1 participant