mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 19:21:26 +08:00
* Adapt number types in ast Since mypy 0.990 type promotions was limited. This means that complex is not longer promoted to int/float, therefore we should adapt the types to list all possible types Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
@@ -69,7 +69,7 @@ paMacCoreStreamInfo: PaMacCoreStreamInfo
|
||||
# Auxiliary types
|
||||
_ChannelMap: TypeAlias = Sequence[int]
|
||||
_PaHostApiInfo: TypeAlias = Mapping[str, str | int]
|
||||
_PaDeviceInfo: TypeAlias = Mapping[str, str | float]
|
||||
_PaDeviceInfo: TypeAlias = Mapping[str, str | int | float]
|
||||
_StreamCallback: TypeAlias = Callable[[bytes | None, int, Mapping[str, float], int], tuple[bytes | None, int]]
|
||||
|
||||
def get_format_from_width(width: int, unsigned: bool = ...) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user