Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Aug 25, 2023
1 parent 6c82a88 commit b94d587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compas_view2/values/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __repr__(self):
return "<{}: {}>".format(self.__class__.__name__, self.value)

def _check_type(self, value):
assert type(value) == self.value_type, "{} is not of type {}".format(value, self.value_type)
assert isinstance(value, self.value_type), "{} is not of type {}".format(value, self.value_type)

def _check_options(self, value):
if self.options is not None:
Expand Down Expand Up @@ -63,7 +63,7 @@ def options(self):

@options.setter
def options(self, options):
assert type(options) == list, "Options must be a list"
assert isinstance(options, list), "Options must be a list"
for option in options:
self._check_type(option)
self._options = options
Expand Down

0 comments on commit b94d587

Please sign in to comment.