From 1e2e101763f94b10e2daa9ae65d4f72b9febdf2f Mon Sep 17 00:00:00 2001 From: Janusz Gregorczyk Date: Tue, 29 Oct 2024 17:32:01 +0100 Subject: [PATCH] fix: Fix compatibility with Python 3.9. --- bitmapist/cohort/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitmapist/cohort/__init__.py b/bitmapist/cohort/__init__.py index d0b0706..1df06cb 100644 --- a/bitmapist/cohort/__init__.py +++ b/bitmapist/cohort/__init__.py @@ -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. @@ -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. @@ -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 ( @@ -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.