Mark stub-only private symbols as @type_check_only in third-party stubs (#14545)

This commit is contained in:
Brian Schubert authored and GitHub committed 2025-08-08 11:29:48 +02:00
1 parent a358dc24e8
commit 81c8fcb2e6
131 files changed
+334 -147

No files matched your search

+2 -1
View File
@@ -2,7 +2,7 @@ from _typeshed import Incomplete
from collections.abc import Callable, Coroutine, Iterable, Mapping, Sequence
from contextlib import AbstractContextManager
from types import TracebackType
from typing import Any, ClassVar, Generic, Literal, TypeVar, overload
from typing import Any, ClassVar, Generic, Literal, TypeVar, overload, type_check_only
from typing_extensions import ParamSpec, Self
_F = TypeVar("_F", bound=Callable[..., Any])
@@ -211,6 +211,7 @@ class _patch_dict:
start: Any
stop: Any
@type_check_only
class _patcher:
TEST_PREFIX: str
dict: type[_patch_dict]