Skip to content

Commit

Permalink
avoid explicit type != type comparison: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanssen2 authored Mar 5, 2024
1 parent e23fced commit 8e6e180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiita_client/qiita_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self, output_name, artifact_type, files, archive=None):

def __eq__(self, other):
logger.debug('Entered ArtifactInfo.__eq__()')
if type(self) != type(other):
if not isinstance(other, ArtifactInfo):
return False
if self.output_name != other.output_name or \
self.artifact_type != other.artifact_type or \
Expand Down

0 comments on commit 8e6e180

Please sign in to comment.