Skip to content

Commit

Permalink
Use Union for a union type involving h5py
Browse files Browse the repository at this point in the history
See #492 for more details
  • Loading branch information
yousefmoazzam committed Oct 16, 2024
1 parent c43e136 commit 252bacb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions httomo/data/padding.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, Union

import h5py
import numpy as np
Expand All @@ -10,7 +10,7 @@


def extrapolate_before(
global_data: h5py.Dataset | np.ndarray,
global_data: Union[h5py.Dataset, np.ndarray],
block_data: np.ndarray,
slices: int,
dim: int,
Expand Down Expand Up @@ -50,7 +50,7 @@ def extrapolate_before(


def extrapolate_after(
global_data: h5py.Dataset | np.ndarray,
global_data: Union[h5py.Dataset, np.ndarray],
block_data: np.ndarray,
slices: int,
dim: int,
Expand Down

0 comments on commit 252bacb

Please sign in to comment.