Skip to content

Commit

Permalink
Type annotate merge_partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoerivanEngelen committed Feb 14, 2024
1 parent d9b3494 commit 4b262e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xugrid/ugrid/ugrid1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def contract_vertices(self, indices: IntArray) -> "Ugrid1d":
)

@staticmethod
def merge_partitions(grids: Sequence["Ugrid1d"]) -> "Ugrid1d":
def merge_partitions(grids: Sequence["Ugrid1d"]) -> tuple["Ugrid1d", dict[str, np.array]]:
"""
Merge grid partitions into a single whole.
Expand Down
2 changes: 1 addition & 1 deletion xugrid/ugrid/ugrid2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ def partition(self, n_part: int):
return [self.topology_subset(index) for index in indices]

@staticmethod
def merge_partitions(grids: Sequence["Ugrid2d"]) -> "Ugrid2d":
def merge_partitions(grids: Sequence["Ugrid2d"]) -> tuple["Ugrid2d", dict[str, np.array]]:
"""
Merge grid partitions into a single whole.
Expand Down

0 comments on commit 4b262e4

Please sign in to comment.