File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments