Skip to content

Commit

Permalink
Fix XBOG FutureWarning (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
maread99 authored Jun 23, 2021
1 parent af23a89 commit 306d99a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
18 changes: 16 additions & 2 deletions exchange_calendars/common_holidays.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,39 @@ def new_years_day(start_date=None, end_date=None, observance=None, days_of_week=
)


def new_years_eve(start_date=None, end_date=None, observance=None, days_of_week=None):
def new_years_eve(
start_date=None,
end_date=None,
observance=None,
days_of_week=None,
offset=None,
):
return Holiday(
"New Year's Eve",
month=12,
day=31,
start_date=start_date,
end_date=end_date,
offset=offset,
observance=observance,
days_of_week=days_of_week,
)


def epiphany(start_date=None, end_date=None, observance=None, days_of_week=None):
def epiphany(
start_date=None,
end_date=None,
observance=None,
days_of_week=None,
offset=None,
):
return Holiday(
"Epiphany",
month=1,
day=6,
start_date=start_date,
end_date=end_date,
offset=offset,
observance=observance,
days_of_week=days_of_week,
)
Expand Down
2 changes: 1 addition & 1 deletion exchange_calendars/exchange_calendar_cmes.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class CMESExchangeCalendar(ExchangeCalendar):
- Christmas
"""

name = "CME"
name = "CMES"

tz = timezone("America/Chicago")

Expand Down
4 changes: 2 additions & 2 deletions exchange_calendars/exchange_calendar_xbog.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

NewYearsDay = new_years_day()

Epiphany = epiphany(observance=next_monday_offset)
Epiphany = epiphany(offset=next_monday_offset)

StJosephsDay = Holiday(
"St. Joseph's Day (next Monday)",
Expand Down Expand Up @@ -117,7 +117,7 @@
"Cartagena Independence Day",
month=11,
day=11,
observance=next_monday_offset,
offset=next_monday_offset,
)

ImmaculateConception = immaculate_conception()
Expand Down

0 comments on commit 306d99a

Please sign in to comment.