Skip to content

Commit

Permalink
Flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanverkerk committed Jul 31, 2023
1 parent ba6e32d commit ebcee98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/base_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def value(self, value):
:return: new value of field row
"""
if self.field.field_type == CHECKBOX_FIELD:
if type(value) == bool:
if isinstance(value, bool):
self._set_value(value)
elif value == Qt.Checked:
self._set_value(True)
Expand Down
2 changes: 1 addition & 1 deletion utils/qprojects.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def save_setting_to_project(self, tool_name, key, value_list):

name = self.get_tool_state_name(tool_name)

if type(value) == float:
if isinstance(value, float):
QgsProject.instance().writeEntryDouble(name, key, value)
else:
if name in self.file_dict:
Expand Down

0 comments on commit ebcee98

Please sign in to comment.