Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix compatibility with Python 3.9. #68

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading