From fa791c608986bc39a579e197049471bac6d8b172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Wed, 9 Sep 2026 02:07:51 +0100 Subject: [PATCH] Bump ruff to 0.16.6 Reorder type unions in doubles.py to satisfy the new RUF036 check, which requires None to come last in a union. --- pyproject.toml | 2 +- testtools/testresult/doubles.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5747bb6a..0e570fa4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ Homepage = "https://github.com/testing-cabal/testtools" test = ["fixtures", "testscenarios", "testresources"] twisted = ["Twisted", "fixtures"] dev = [ - "ruff==0.15.21", + "ruff==0.16.6", "mypy>=1.20.0", "typing-extensions;python_version<'3.11'", ] diff --git a/testtools/testresult/doubles.py b/testtools/testresult/doubles.py index 639b3d27..7ce1ee26 100644 --- a/testtools/testresult/doubles.py +++ b/testtools/testresult/doubles.py @@ -50,17 +50,17 @@ | tuple[ Literal["addError"], unittest.TestCase, - tuple[type, Exception, object] | dict[str, object] | None | object, + tuple[type, Exception, object] | dict[str, object] | object | None, ] | tuple[ Literal["addFailure"], unittest.TestCase, - tuple[type, Exception, object] | dict[str, object] | None | object, + tuple[type, Exception, object] | dict[str, object] | object | None, ] | tuple[ Literal["addExpectedFailure"], unittest.TestCase, - tuple[type, Exception, object] | dict[str, object] | None | object, + tuple[type, Exception, object] | dict[str, object] | object | None, ] | tuple[ Literal["addSkip"],