Skip to content

Commit 2ce38cd

Browse files
authored
Merge pull request testing-cabal#585 from stephenfin/typing
typing: Correct type of TestCase.skipTest
2 parents 8260ef7 + 2e5845a commit 2ce38cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testtools/testcase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import types
2424
import unittest
2525
from collections.abc import Callable, Iterator
26-
from typing import TYPE_CHECKING, ParamSpec, TypeVar, cast, overload
26+
from typing import TYPE_CHECKING, NoReturn, ParamSpec, TypeVar, cast, overload
2727
from unittest.case import SkipTest
2828

2929
T = TypeVar("T")
@@ -366,7 +366,7 @@ def patch(self, obj: object, attribute: str, value: object) -> None:
366366
def shortDescription(self) -> str:
367367
return self.id()
368368

369-
def skipTest(self, reason: str) -> None: # type: ignore[override]
369+
def skipTest(self, reason: str) -> NoReturn:
370370
"""Cause this test to be skipped.
371371
372372
This raises self.skipException(reason). skipException is raised

0 commit comments

Comments
 (0)