Skip to content

Commit

Permalink
BasePlugin: do not compare types
Browse files Browse the repository at this point in the history
  • Loading branch information
infirit committed Aug 4, 2023
1 parent b76b1bb commit b85691a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueman/plugins/BasePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def set_option(self, key: str, value: Any) -> None:
raise KeyError("No such option")
opt = self.__class__.__options__[key]

if type(value) == opt["type"]:
if type(value) is opt["type"]:
self.__config[key] = value
self.option_changed(key, value)
else:
Expand Down

0 comments on commit b85691a

Please sign in to comment.