mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
@@ -223,22 +223,26 @@ _Parameters: TypeAlias = SupportsLenAndGetItem[_AdaptedInputData] | Mapping[str,
|
||||
# Controls the legacy transaction handling mode of sqlite3.
|
||||
_IsolationLevel: TypeAlias = Literal["DEFERRED", "EXCLUSIVE", "IMMEDIATE"] | None
|
||||
|
||||
@type_check_only
|
||||
class _AnyParamWindowAggregateClass(Protocol):
|
||||
def step(self, *args: Any) -> object: ...
|
||||
def inverse(self, *args: Any) -> object: ...
|
||||
def value(self) -> _SqliteData: ...
|
||||
def finalize(self) -> _SqliteData: ...
|
||||
|
||||
@type_check_only
|
||||
class _WindowAggregateClass(Protocol):
|
||||
step: Callable[..., object]
|
||||
inverse: Callable[..., object]
|
||||
def value(self) -> _SqliteData: ...
|
||||
def finalize(self) -> _SqliteData: ...
|
||||
|
||||
@type_check_only
|
||||
class _AggregateProtocol(Protocol):
|
||||
def step(self, value: int, /) -> object: ...
|
||||
def finalize(self) -> int: ...
|
||||
|
||||
@type_check_only
|
||||
class _SingleParamWindowAggregateClass(Protocol):
|
||||
def step(self, param: Any, /) -> object: ...
|
||||
def inverse(self, param: Any, /) -> object: ...
|
||||
|
||||
Reference in New Issue
Block a user