Skip to content

Commit

Permalink
Type annotations for optional packages needs to be by string.
Browse files Browse the repository at this point in the history
Should avoid AttributeErrors in environments without optional packages.
  • Loading branch information
bbassett-tibco committed Jun 6, 2024
1 parent a91b825 commit 0f83611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotfire/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def set_spotfire_types(dataframe: pd.DataFrame, column_types: _ColumnTypes) -> N

# Spotfire geocoding table functions

def set_geocoding_table(dataframe: gpd.GeoDataFrame) -> None:
def set_geocoding_table(dataframe: "gpd.GeoDataFrame") -> None:
"""Add the required columns and set properties to export a ``GeoDataFrame`` as a geocoding table for Spotfire.
:param dataframe: the data frame to configure as a geocoding table.
Expand Down

0 comments on commit 0f83611

Please sign in to comment.