Skip to content

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Apr 12, 2023

Fixes #205
Fixes #459

This PR adds np.integer as the types supported by the Integer Parameter. Chose not to cast to Python int not to set a precedent compared to Number, Date (and others) that also support Numpy types and don't cast.

@maximlt maximlt requested a review from jlstevens April 13, 2023 08:30
@jlstevens
Copy link
Contributor

Looks good to me!

I like that it is handled consistently with out dt_types does it.

@maximlt maximlt merged commit be48360 into main May 2, 2023
@maximlt maximlt deleted the allow_np_integer branch May 2, 2023 21:11
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.

allow np.integer in validation of param.Integer Better behavior for Integer defaults
2 participants