@@ -156,7 +156,7 @@ def calculate_location_gis_geometry(
156156
157157def calculate_wgs84_coordinates (
158158 from_crs : CRS , easting : float , northing : float , elevation : Union [float , None ] = None
159- ) -> Tuple :
159+ ) -> tuple [ float , float , ( float | None )] :
160160 """Transforms coordinates from an arbitrary Coordinate Reference System (CRS) to the WGS84 CRS, which is the standard for geodetic coordinates.
161161
162162 Args:
@@ -167,9 +167,10 @@ def calculate_wgs84_coordinates(
167167 transform. Defaults to None.
168168
169169 Returns:
170- tuple: A tuple containing the longitude, latitude and WGS84 height of the
171- transformed point, in that order. The height is None if no elevation was
172- given, or if the provided CRS doesn't have a proper datum defined.
170+ tuple[float, float, (float | None)]: A tuple containing the longitude, latitude
171+ and WGS84 height of the transformed point, in that order.
172+ The height is None if no elevation was given, or if the provided CRS doesn't
173+ have a proper datum defined.
173174 """
174175 transformer = Transformer .from_crs (from_crs , 4326 , always_xy = True )
175176 if elevation :
@@ -178,7 +179,7 @@ def calculate_wgs84_coordinates(
178179 lon , lat = transformer .transform (easting , northing )
179180 wgs84_height = None
180181
181- return lon , lat , wgs84_height
182+ return ( lon , lat , wgs84_height )
182183
183184
184185def create_lon_lat_height_table (
@@ -198,7 +199,7 @@ def create_lon_lat_height_table(
198199 crs (CRS): The Coordinate Reference System of the GI locations.
199200
200201 Returns:
201- GeoDataFrame: The 'LonLatHeight' GeoDataFrame.
202+ gpd. GeoDataFrame: The 'LonLatHeight' GeoDataFrame.
202203 """
203204 lon_lat_height = gpd .GeoDataFrame (
204205 brgi_location [
0 commit comments