From e11d2cbaab906094f5dea4cae84aed2b7c46a71d Mon Sep 17 00:00:00 2001 From: Quinten Steenhuis Date: Thu, 14 Mar 2024 21:17:07 -0400 Subject: [PATCH 1/2] Typing issue --- docassemble/AssemblyLine/al_courts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docassemble/AssemblyLine/al_courts.py b/docassemble/AssemblyLine/al_courts.py index ca53bae1..60506cbc 100644 --- a/docassemble/AssemblyLine/al_courts.py +++ b/docassemble/AssemblyLine/al_courts.py @@ -110,7 +110,7 @@ def short_description(self) -> str: all_info = f"{ all_info }[BR]{ self.address.on_one_line() }" return f"{ all_info }[BR]{ self.description }" - def from_row(self, df_row: pd.Series, ensure_lat_long: bool = True) -> None: + def from_row(self, df_row: Union[pd.Series, pd.DataFrame], ensure_lat_long: bool = True) -> None: """ Loads data from a single Pandas Dataframe into the current court object. Note: It will try to convert column names that don't make valid From 6e326f83dc8bdeef710deb54980803be76aec137 Mon Sep 17 00:00:00 2001 From: Quinten Steenhuis Date: Thu, 14 Mar 2024 21:21:41 -0400 Subject: [PATCH 2/2] Black --- docassemble/AssemblyLine/al_courts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docassemble/AssemblyLine/al_courts.py b/docassemble/AssemblyLine/al_courts.py index 60506cbc..8c7d662e 100644 --- a/docassemble/AssemblyLine/al_courts.py +++ b/docassemble/AssemblyLine/al_courts.py @@ -110,7 +110,9 @@ def short_description(self) -> str: all_info = f"{ all_info }[BR]{ self.address.on_one_line() }" return f"{ all_info }[BR]{ self.description }" - def from_row(self, df_row: Union[pd.Series, pd.DataFrame], ensure_lat_long: bool = True) -> None: + def from_row( + self, df_row: Union[pd.Series, pd.DataFrame], ensure_lat_long: bool = True + ) -> None: """ Loads data from a single Pandas Dataframe into the current court object. Note: It will try to convert column names that don't make valid