rsheftel / pandas_market_calendars

Exchange calendars to use with pandas for trading applications
MIT License
804 stars 173 forks source link

Add type hint for get calendar function #249

Closed hinryd closed 1 year ago

hinryd commented 1 year ago

Currently, the implicit return type for the get_calendar function is None while the actual return type of get_calendar is MarketCalendar due to the inferred MarketCalendar.factory function. This pull request adds the correct type hint for the get_calendar function.