From 8e6e18082cbd64122c52eca9083ff9b5537527a0 Mon Sep 17 00:00:00 2001 From: Stefan Janssen Date: Tue, 5 Mar 2024 16:17:03 +0100 Subject: [PATCH] avoid explicit type != type comparison: flake8 --- qiita_client/qiita_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiita_client/qiita_client.py b/qiita_client/qiita_client.py index 881cf5a..f16e1d3 100644 --- a/qiita_client/qiita_client.py +++ b/qiita_client/qiita_client.py @@ -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 \