Skip to content

Commit

Permalink
bin: Fix isinstance for boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Granddave committed Oct 4, 2024
1 parent 9fb529e commit fa58fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/bin/auto_mouse_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def set_mouse_mode(enabled: bool, verbose=False):
if verbose:
print("Setting mouse mode:", enabled)

if type(enabled) is not bool:
if not isinstance(enabled, bool):
raise ValueError(f"'enabled' (type {type(enabled)}) is not of type bool")

set_alt_drag(enabled, verbose)
Expand Down

0 comments on commit fa58fd2

Please sign in to comment.