From e2f381bf298af557a77d6d868c42d5916e891b3a Mon Sep 17 00:00:00 2001 From: jorenham Date: Thu, 7 Aug 2025 22:22:08 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=20revert=20`unittest.TestCase`=20type?= =?UTF-8?q?shed=20workaround?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/numpy-stubs/testing/__init__.pyi | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/numpy-stubs/testing/__init__.pyi b/src/numpy-stubs/testing/__init__.pyi index c42869bf..6dc98930 100644 --- a/src/numpy-stubs/testing/__init__.pyi +++ b/src/numpy-stubs/testing/__init__.pyi @@ -1,4 +1,4 @@ -from unittest import TestCase as _TestCase +from unittest import TestCase from . import overrides from ._private.utils import ( @@ -104,7 +104,3 @@ __all__ = [ "temppath", "verbose", ] - -# workaround for incorrect typeshed definition -class TestCase(_TestCase): - def __init_subclass__(cls, *args: object, **kwargs: object) -> None: ...