mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-31 13:10:23 +08:00
Mark stub-only private symbols as @type_check_only in third-party stubs (#14545)
This commit is contained in:
@@ -3,13 +3,14 @@ from _typeshed import Unused
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Generator
|
||||
from re import Match, Pattern
|
||||
from typing import Any, Final, Generic, Literal, Protocol, TypeVar, overload
|
||||
from typing import Any, Final, Generic, Literal, Protocol, TypeVar, overload, type_check_only
|
||||
from typing_extensions import Never, Self, TypeAlias
|
||||
|
||||
_R_co = TypeVar("_R_co", float, datetime.datetime, default=float, covariant=True)
|
||||
_R2_co = TypeVar("_R2_co", float, datetime.datetime, covariant=True)
|
||||
_Expressions: TypeAlias = list[str] # fixed-length list of 5 or 6 strings
|
||||
|
||||
@type_check_only
|
||||
class _AllIter(Protocol[_R_co]):
|
||||
@overload
|
||||
def __call__(
|
||||
|
||||
Reference in New Issue
Block a user