mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -3,25 +3,25 @@ from collections.abc import Callable, Iterable, Sequence
|
||||
from ctypes import _CData, _SimpleCData, c_char
|
||||
from multiprocessing.context import BaseContext
|
||||
from multiprocessing.synchronize import _LockLike
|
||||
from typing import Any, Generic, Protocol, Type, TypeVar, overload
|
||||
from typing import Any, Generic, Protocol, TypeVar, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_CT = TypeVar("_CT", bound=_CData)
|
||||
|
||||
@overload
|
||||
def RawValue(typecode_or_type: Type[_CT], *args: Any) -> _CT: ...
|
||||
def RawValue(typecode_or_type: type[_CT], *args: Any) -> _CT: ...
|
||||
@overload
|
||||
def RawValue(typecode_or_type: str, *args: Any) -> Any: ...
|
||||
@overload
|
||||
def RawArray(typecode_or_type: Type[_CT], size_or_initializer: int | Sequence[Any]) -> ctypes.Array[_CT]: ...
|
||||
def RawArray(typecode_or_type: type[_CT], size_or_initializer: int | Sequence[Any]) -> ctypes.Array[_CT]: ...
|
||||
@overload
|
||||
def RawArray(typecode_or_type: str, size_or_initializer: int | Sequence[Any]) -> Any: ...
|
||||
@overload
|
||||
def Value(typecode_or_type: Type[_CT], *args: Any, lock: Literal[False], ctx: BaseContext | None = ...) -> _CT: ...
|
||||
def Value(typecode_or_type: type[_CT], *args: Any, lock: Literal[False], ctx: BaseContext | None = ...) -> _CT: ...
|
||||
@overload
|
||||
def Value(
|
||||
typecode_or_type: Type[_CT], *args: Any, lock: Literal[True] | _LockLike, ctx: BaseContext | None = ...
|
||||
typecode_or_type: type[_CT], *args: Any, lock: Literal[True] | _LockLike, ctx: BaseContext | None = ...
|
||||
) -> SynchronizedBase[_CT]: ...
|
||||
@overload
|
||||
def Value(
|
||||
@@ -29,15 +29,15 @@ def Value(
|
||||
) -> SynchronizedBase[Any]: ...
|
||||
@overload
|
||||
def Value(
|
||||
typecode_or_type: str | Type[_CData], *args: Any, lock: bool | _LockLike = ..., ctx: BaseContext | None = ...
|
||||
typecode_or_type: str | type[_CData], *args: Any, lock: bool | _LockLike = ..., ctx: BaseContext | None = ...
|
||||
) -> Any: ...
|
||||
@overload
|
||||
def Array(
|
||||
typecode_or_type: Type[_CT], size_or_initializer: int | Sequence[Any], *, lock: Literal[False], ctx: BaseContext | None = ...
|
||||
typecode_or_type: type[_CT], size_or_initializer: int | Sequence[Any], *, lock: Literal[False], ctx: BaseContext | None = ...
|
||||
) -> _CT: ...
|
||||
@overload
|
||||
def Array(
|
||||
typecode_or_type: Type[_CT],
|
||||
typecode_or_type: type[_CT],
|
||||
size_or_initializer: int | Sequence[Any],
|
||||
*,
|
||||
lock: Literal[True] | _LockLike,
|
||||
@@ -53,7 +53,7 @@ def Array(
|
||||
) -> SynchronizedArray[Any]: ...
|
||||
@overload
|
||||
def Array(
|
||||
typecode_or_type: str | Type[_CData],
|
||||
typecode_or_type: str | type[_CData],
|
||||
size_or_initializer: int | Sequence[Any],
|
||||
*,
|
||||
lock: bool | _LockLike = ...,
|
||||
|
||||
Reference in New Issue
Block a user