Skip to content

Commit

Permalink
Use forward reference
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Aug 21, 2024
1 parent c1be4d9 commit d479001
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@
except ImportError:
pass

try:
import geopandas as gpd
except ImportError:
gpd = None

if TYPE_CHECKING:
import geopandas as gpd


class WhiteboxTools(whitebox.WhiteboxTools):
"""This class inherits the whitebox WhiteboxTools class."""
Expand Down Expand Up @@ -14149,7 +14141,7 @@ def convert_to_gdf(
obj_to_str: bool = False,
open_args: Optional[Dict[str, Any]] = None,
**kwargs: Any,
) -> gpd.GeoDataFrame:
) -> "gpd.GeoDataFrame":
"""Convert data to a GeoDataFrame.
Args:
Expand Down

0 comments on commit d479001

Please sign in to comment.