From 3317c8485d0fe6c05fec07a6be04c4ecc651d6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 15 Jul 2024 09:03:33 +0100 Subject: [PATCH] Bump ruff to 0.5.2 --- pyproject.toml | 2 +- testtools/content_type.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1ef5f4a5..62f4e4b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,4 +71,4 @@ __version__ = {version_tuple!r} [project.optional-dependencies] test = ["testscenarios", "testresources"] twisted = ["Twisted", "fixtures"] -dev = ["ruff==0.5.1"] +dev = ["ruff==0.5.2"] diff --git a/testtools/content_type.py b/testtools/content_type.py index aaa9e71b..406dc90b 100644 --- a/testtools/content_type.py +++ b/testtools/content_type.py @@ -23,7 +23,7 @@ def __init__(self, primary_type, sub_type, parameters=None): self.parameters = parameters or {} def __eq__(self, other): - if type(other) != ContentType: + if type(other) is not ContentType: return False return self.__dict__ == other.__dict__