From a6c839a31e48b81e1596bd36207c75d6e03a6b9b Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 14 May 2024 14:01:05 -0700 Subject: [PATCH] Remove typing.Optional from tests --- release_gitter_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/release_gitter_test.py b/release_gitter_test.py index a76df09..1bef606 100644 --- a/release_gitter_test.py +++ b/release_gitter_test.py @@ -5,7 +5,6 @@ from tarfile import TarFile from typing import Any from typing import Callable from typing import NamedTuple -from typing import Optional from unittest.mock import MagicMock from unittest.mock import mock_open from unittest.mock import patch @@ -21,7 +20,7 @@ class TestExpression(NamedTuple): args: list[Any] kwargs: dict[str, Any] expected: Any - exception: Optional[type[Exception]] = None + exception: type[Exception] | None = None def run(self, f: Callable): with self.t.subTest(f=f, args=self.args, kwargs=self.kwargs):