mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 05:04:44 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
1 parent
dde70aeecd
commit
622df68c1c
61 files changed
+188
-51
No files matched your search
@@ -5,12 +5,13 @@ import unittest.result
|
||||
import unittest.suite
|
||||
from collections.abc import Iterable
|
||||
from types import ModuleType
|
||||
from typing import Any, Final, Protocol
|
||||
from typing import Any, Final, Protocol, type_check_only
|
||||
from typing_extensions import deprecated
|
||||
|
||||
MAIN_EXAMPLES: Final[str]
|
||||
MODULE_EXAMPLES: Final[str]
|
||||
|
||||
@type_check_only
|
||||
class _TestRunner(Protocol):
|
||||
def run(self, test: unittest.suite.TestSuite | unittest.case.TestCase, /) -> unittest.result.TestResult: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user