Skip to content

Commit e45e78d

Browse files
committed
mypy
1 parent 9bcd96c commit e45e78d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blobmodel/blobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def discretize_blob(
166166
x, y, t, Ly, periodic_y, one_dimensional=one_dimensional
167167
)
168168

169-
time = t if isinstance(t, Union[int, float]) else t[0][0]
169+
time = t if type(t) in [int, float] else t[0][0]
170170
vertical_prop = self.v_y * time + self.pos_y
171171
number_of_y_propagations = vertical_prop // Ly
172172

0 commit comments

Comments
 (0)