Skip to content

Commit

Permalink
fix isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed Jun 23, 2024
1 parent e28e9d3 commit b511309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napari/_qt/qt_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ def export_figure(
Numpy array of type ubyte and shape (h, w, 4). Index [0, 0] is the
upper-left corner of the rendered region.
"""
if not isinstance(scale, float):
if not isinstance(scale, (float, int)):
raise TypeError(
trans._(
'Scale must be a float or an int.',
Expand Down

0 comments on commit b511309

Please sign in to comment.