Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
eliottrosenberg committed Jan 26, 2024
1 parent d6cc9cb commit e4037f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ def plot_heatmap(

else:
if (
not len(axs) != 2 or type(axs[0]) != plt.Axes or type(axs[1]) != plt.Axes
not isinstance(axs, (tuple, list, np.ndarray))
or len(axs) != 2
or type(axs[0]) != plt.Axes
or type(axs[1]) != plt.Axes
): # pragma: no cover
raise ValueError('axs should be a length-2 tuple of plt.Axes') # pragma: no cover
for ax, title, data in zip(
Expand Down

0 comments on commit e4037f8

Please sign in to comment.