Skip to content

Commit 6ee3e9e

Browse files
committed
lint
1 parent 15ce75f commit 6ee3e9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sir_complainsalot/delphi_sir_complainsalot/date_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Utility for converting dates to a format accepted by epidata api.
3+
"""
4+
15
from datetime import datetime
26

37
import pandas as pd
@@ -6,6 +10,7 @@
610

711
def _date_to_api_string(d: datetime, time_type: str = "day") -> str:
812
"""Convert a date object to a YYYYMMDD or YYYYMM string expected by the API."""
13+
# pylint: disable=R1705
914
if time_type == "day":
1015
return d.strftime("%Y%m%d")
1116
elif time_type == "week":

0 commit comments

Comments
 (0)