streamlit icon indicating copy to clipboard operation
streamlit copied to clipboard

feat: refine date_input to ensure consistent and accurate return types

Open pranaybattu opened this issue 1 year ago • 0 comments

Describe your changes

  • refine date_input to ensure consistent and accurate return types
  • Added overloads to handle both single and range date inputs with specific return types
  • Added type tests using assert_type for various scenarios, including single dates, date ranges, formats, min/max values, disabled state, and on_change callbacks

GitHub Issue Link (if applicable)

Related to #9477

Testing Plan

  • Explanation of why no additional tests are needed
  • Unit Tests (JS and/or Python)
  • E2E Tests
  • Any manual testing needed?

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

pranaybattu avatar Oct 07 '24 19:10 pranaybattu