Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add __init__ None return typing #436

Merged
merged 1 commit into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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