Skip to content

Commit

Permalink
Merge pull request #68 from Doist/proxi/fix-39
Browse files Browse the repository at this point in the history
fix: Fix compatibility with Python 3.9.
  • Loading branch information
proxi authored Oct 29, 2024
2 parents 4cbd5d5 + 1e2e101 commit fa0b5b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bitmapist/cohort/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def render_html_form(
as_percent: bool = True,
num_results: int = 31,
num_of_rows: int = 12,
start_date: str | None = None,
start_date: Optional[str] = None,
):
"""
Render a HTML form that can be used to query the data in bitmapist.
Expand Down Expand Up @@ -151,7 +151,7 @@ def render_html_data(
time_group: Literal["days", "weeks", "months", "years"] = "days",
num_results: int = 31,
num_of_rows: int = 12,
start_date: str | None = None,
start_date: Optional[str] = None,
):
"""
Render's data as HTML, inside a TABLE element.
Expand Down Expand Up @@ -180,7 +180,7 @@ def render_csv_data(
time_group: Literal["days", "weeks", "months", "years"] = "days",
num_results: int = 31,
num_of_rows: int = 12,
start_date: str | None = None,
start_date: Optional[str] = None,
):
"""Render's data as CSV."""
return (
Expand Down Expand Up @@ -210,7 +210,7 @@ def get_dates_data(
as_percent: bool = True,
num_results: int = 31,
num_of_rows: int = 12,
start_date: str | None = None,
start_date: Optional[str] = None,
):
"""
Fetch the data from bitmapist.
Expand Down

0 comments on commit fa0b5b0

Please sign in to comment.