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

Timepicker: stricter parameters and minor doc changes #7308

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Sep 20, 2024

Funnily, I've noticed the default clock value is 12h in Panel and 24h in Bokeh. I bet the Bokeh dev is based in Europe and the Panel dev in the US 🙃

@maximlt
Copy link
Member Author

maximlt commented Sep 20, 2024

(I would have had a small preference for allowing only a single type for value, start and end, as datetime.time, instead of allowing that and str even if that's what Bokeh does).

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.19%. Comparing base (3d016ed) to head (ac6cc7a).
Report is 7 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7308       +/-   ##
===========================================
+ Coverage   41.54%   82.19%   +40.64%     
===========================================
  Files         325      337       +12     
  Lines       48078    50394     +2316     
===========================================
+ Hits        19976    41419    +21443     
+ Misses      28102     8975    -19127     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -830,7 +830,7 @@ class _TimeCommon(Widget):
selectable, and AM/PM depending on the `clock` option.
""")

clock = param.String(default='12h', doc="""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly should have aligned this with DatetimePicker:

military_time = param.Boolean(default=True, doc="""
      Whether to display time in 24 hour format.""")

@philippjfr philippjfr merged commit 3f4d443 into main Sep 23, 2024
15 of 16 checks passed
@philippjfr philippjfr deleted the timepicker_minor_changes branch September 23, 2024 07:26
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.

2 participants