Skip to content

Conversation

@inzamrzn918
Copy link

Added type hint for start and end datetime for interval

Pull Request Checklist

Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:

  • [ ✓] 🧪 Added tests for changed code.
  • [✓ ] 🛠️ All tests pass when run locally (run tox or make test to find out!).
  • [✓ ] 🧹 All linting checks pass when run locally (run tox -e lint or make lint to find out!).
  • [ ✓] 📚 Updated documentation for changed code.
  • [ ✓] ⏩ Code is up-to-date with the master branch.

If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!

Description of Changes

This PR will fix issue "Closes: #1210", which is a bug related to type hint

Added type hint for start and end datetime for interval
@codecov
Copy link

codecov bot commented Oct 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@85cd905). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             master     #1230   +/-   ##
==========================================
  Coverage          ?   100.00%           
==========================================
  Files             ?        10           
  Lines             ?      2343           
  Branches          ?       358           
==========================================
  Hits              ?      2343           
  Misses            ?         0           
  Partials          ?         0           

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

@krisfremen krisfremen self-requested a review October 5, 2025 01:12
@inzamrzn918
Copy link
Author

@krisfremen , Can you please complete the review

Comment on lines -740 to +742
:param end: (optional) A datetime expression, the end of the range.
:param start: A datetime or Arrow expression, the start of the range.
:param end: (optional) A datetime or Arrow expression, the end of the range.
Copy link
Member

Choose a reason for hiding this comment

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

please add a test case using the Arrow object - are we properly handling it in the body?

@jadchaar
Copy link
Member

Had one comment - thanks for your contribution

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.

Type hints for Arrow.interval should show Arrow as possible type for start and end arguments

2 participants