Skip to content

Commit d9d8f54

Browse files
authored
Merge pull request #5432 from neutrinoceros/typ/fixup-typechecking
TYP: fixup type checking (remove unused type: ignore comments)
2 parents ccc8e7f + 22a1ca4 commit d9d8f54

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

yt/utilities/parallel_tools/parallel_analysis_interface.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,7 @@ def all_concat(self, data: dict[Any, npt.NDArray | dict[str, npt.NDArray]]):
10101010
)
10111011

10121012
if self._distributed:
1013-
# NOTE: mypy thinks this statement is unreachable (it is not)
1014-
all_values = np.concatenate(self.comm.allgather(all_values)) # type: ignore[unreachable]
1013+
all_values = np.concatenate(self.comm.allgather(all_values))
10151014

10161015
return all_values
10171016

@@ -1046,8 +1045,7 @@ def concat(
10461045
)
10471046

10481047
if self._distributed:
1049-
# NOTE: mypy thinks this statement is unreachable (it is not)
1050-
tmp = self.comm.gather(all_values, root=root) # type: ignore[unreachable]
1048+
tmp = self.comm.gather(all_values, root=root)
10511049
if self.comm.rank == root:
10521050
return np.concatenate(tmp)
10531051
else:

0 commit comments

Comments
 (0)