Skip to content

Commit d3f15b5

Browse files
committed
Fix type annotations
1 parent 87e804f commit d3f15b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stagpy/field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def plot_scalar(
169169
field: Optional[ndarray] = None,
170170
axis: Optional[Axes] = None,
171171
**extra: Any,
172-
) -> Tuple[Figure, Axes, QuadMesh, Colorbar]:
172+
) -> Tuple[Figure, Axes, QuadMesh, Optional[Colorbar]]:
173173
"""Plot scalar field.
174174
175175
Args:
@@ -215,7 +215,7 @@ def plot_scalar(
215215
if axis is None:
216216
fig, axis = plt.subplots(ncols=1)
217217
else:
218-
fig = axis.get_figure()
218+
fig = axis.get_figure() # type: ignore
219219

220220
if step.sdat.par["magma_oceans_in"]["evolving_magma_oceans"]:
221221
rcmb = step.sdat.par["geometry"]["r_cmb"]
@@ -238,7 +238,7 @@ def plot_scalar(
238238
shading="flat",
239239
)
240240
extra_opts.update(extra)
241-
surf = axis.pcolormesh(xmesh, ymesh, fld, **extra_opts)
241+
surf = axis.pcolormesh(xmesh, ymesh, fld, **extra_opts) # type: ignore
242242

243243
cbar = None
244244
if conf.field.colorbar:

0 commit comments

Comments
 (0)