From 59717f4d0a24beb43dfff81041bf2ee70895d3a8 Mon Sep 17 00:00:00 2001 From: Daksh2000 <44369829+Daksh2000@users.noreply.github.com> Date: Sun, 9 Mar 2025 18:55:56 +0530 Subject: [PATCH] Fix override issue in GeoDataFrame.astype return type (#13606) --- stubs/geopandas/geopandas/geodataframe.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/geopandas/geopandas/geodataframe.pyi b/stubs/geopandas/geopandas/geodataframe.pyi index 4fe4e4689..7f30a113b 100644 --- a/stubs/geopandas/geopandas/geodataframe.pyi +++ b/stubs/geopandas/geopandas/geodataframe.pyi @@ -315,7 +315,7 @@ class GeoDataFrame(GeoPandasBase, pd.DataFrame): # type: ignore[misc] dtype: AstypeArg | Mapping[Any, Dtype] | pd.Series[Any], # any because of mapping invariance and series typevar bounds copy: bool | None = None, errors: Literal["ignore", "raise"] = "raise", - ) -> GeoDataFrame | pd.DataFrame: ... + ) -> GeoDataFrame: ... def to_postgis( self, name: str,