Skip to content

Allow type change for DateRange and Date - #733

Merged
maximlt merged 5 commits into
mainfrom
allow_type_change_for_DateRange
Apr 17, 2023
Merged

maximlt merged 5 commits into
mainfrom
allow_type_change_for_DateRange

Conversation

@hoxbro

@hoxbro hoxbro commented Apr 12, 2023

Copy link
Copy Markdown
Member

Fixes holoviz/panel#4566

This adds support for having both datetime.date and datetime.datetime values in param.DateRange.

@maximlt maximlt changed the title Allow type change for DateRange Allow type change for DateRange and Date Apr 17, 2023
@maximlt

maximlt commented Apr 17, 2023

Copy link
Copy Markdown
Member

Thanks for that @hoxbro! I've made some changes, mostly to add the same behavior to Date so that Param offers a consistent behavior for these two Parameters. Let me know if you want to review it?

Comment thread param/__init__.py Resolved
Co-authored-by: Simon Høxbro Hansen <simon.hansen@me.com>
@maximlt

maximlt commented Apr 17, 2023

Copy link
Copy Markdown
Member

Thanks for the review!

@maximlt
maximlt merged commit 28cad89 into main Apr 17, 2023
@maximlt
maximlt deleted the allow_type_change_for_DateRange branch April 17, 2023 15:08
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.

Using pn.DateRangeSlider with datetime.date return param error

2 participants