Skip to content

Commit

Permalink
add dunder init None return typing (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Sep 16, 2023
1 parent 2e732c8 commit 7d9a844
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/geovista/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def __init__(
zlevel: int | None = None,
zscale: float | None = None,
clean: bool | None = None,
):
) -> None:
"""Build a mesh from spatial points, connectivity, data and CRS metadata.
Convenience factory to build multiple identical meshes but with different face
Expand Down
2 changes: 1 addition & 1 deletion src/geovista/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
mesh: pv.PolyData,
meridian: float,
offset: float | None = None,
):
) -> None:
"""Create a `meridian` seam in the `mesh`.
The seam extends from the north-pole to the south-pole in a great circle,
Expand Down
2 changes: 1 addition & 1 deletion src/geovista/geodesic.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(
ellps: str | None = ELLIPSE,
c: int | None = BBOX_C,
triangulate: bool | None = False,
):
) -> None:
"""Create 3-D geodesic bounding-box to extract enclosed mesh, lines or point.
The bounding-box region is specified in terms of its four corners, in
Expand Down
2 changes: 1 addition & 1 deletion src/geovista/geoplotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class GeoPlotterBase:
"""

def __init__(self, *args: Any | None, **kwargs: Any | None):
def __init__(self, *args: Any | None, **kwargs: Any | None) -> None:
"""Create geospatial aware plotter.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion src/geovista/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(
mesh: PolyData,
leaf_size: int | None = None,
preference: str | Preference | None = None,
):
) -> None:
"""Construct kd-tree for nearest neighbour search of mesh points/cell centers.
Note that, the cell centers will be calculated from the mesh geometry and do not
Expand Down

0 comments on commit 7d9a844

Please sign in to comment.