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.
Currently, the implicit return type for the
get_calendar
function isNone
while the actual return type ofget_calendar
isMarketCalendar
due to the inferredMarketCalendar.factory
function. This pull request adds the correct type hint for theget_calendar
function.