mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-04 02:23:24 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Dict, Generator, Iterable, Iterator, List, Sequence, Tuple, overload
|
||||
from typing import Any, Callable, Generator, Iterable, Iterator, Sequence, Tuple, overload
|
||||
|
||||
_NDArray = Any # FIXME: no typings for numpy arrays
|
||||
|
||||
@@ -94,7 +94,7 @@ class Client:
|
||||
@transport_frame.setter
|
||||
def transport_frame(self, frame: int) -> None: ...
|
||||
def transport_locate(self, frame: int) -> None: ...
|
||||
def transport_query(self) -> Tuple[TransportState, Dict[str, Any]]: ...
|
||||
def transport_query(self) -> Tuple[TransportState, dict[str, Any]]: ...
|
||||
def transport_query_struct(self) -> Tuple[TransportState, _JackPositionT]: ...
|
||||
def transport_reposition_struct(self, position: _JackPositionT) -> None: ... # TODO
|
||||
def set_sync_timeout(self, timeout: int) -> None: ...
|
||||
@@ -125,7 +125,7 @@ class Client:
|
||||
def get_uuid_for_client_name(self, name: str) -> str: ...
|
||||
def get_client_name_by_uuid(self, uuid: str) -> str: ...
|
||||
def get_port_by_name(self, name: str) -> Port: ...
|
||||
def get_all_connections(self, port: Port) -> List[Port]: ...
|
||||
def get_all_connections(self, port: Port) -> list[Port]: ...
|
||||
def get_ports(
|
||||
self,
|
||||
name_pattern: str = ...,
|
||||
@@ -136,7 +136,7 @@ class Client:
|
||||
is_physical: bool = ...,
|
||||
can_monitor: bool = ...,
|
||||
is_terminal: bool = ...,
|
||||
) -> List[Port]: ...
|
||||
) -> list[Port]: ...
|
||||
def set_property(self, subject: int | str, key: str, value: str | bytes, type: str = ...) -> None: ...
|
||||
def remove_property(self, subject: int | str, key: str) -> None: ...
|
||||
def remove_properties(self, subject: int | str) -> int: ...
|
||||
@@ -153,7 +153,7 @@ class Port:
|
||||
@shortname.setter
|
||||
def shortname(self, shortname: str) -> None: ...
|
||||
@property
|
||||
def aliases(self) -> List[str]: ...
|
||||
def aliases(self) -> list[str]: ...
|
||||
def set_alias(self, alias: str) -> None: ...
|
||||
def unset_alias(self, alias: str) -> None: ...
|
||||
@property
|
||||
@@ -180,7 +180,7 @@ class OwnPort(Port):
|
||||
@property
|
||||
def number_of_connections(self) -> int: ...
|
||||
@property
|
||||
def connections(self) -> List[Port]: ...
|
||||
def connections(self) -> list[Port]: ...
|
||||
def is_connected_to(self, port: str | Port) -> bool: ...
|
||||
def connect(self, port: str | Port) -> None: ...
|
||||
def disconnect(self, other: str | Port | None = ...) -> None: ...
|
||||
@@ -266,9 +266,9 @@ class TransportState:
|
||||
class CallbackExit(Exception): ...
|
||||
|
||||
def get_property(subject: int | str, key: str) -> Tuple[bytes, str] | None: ...
|
||||
def get_properties(subject: int | str) -> Dict[str, Tuple[bytes, str]]: ...
|
||||
def get_all_properties() -> Dict[str, Dict[str, Tuple[bytes, str]]]: ...
|
||||
def position2dict(pos: _JackPositionT) -> Dict[str, Any]: ...
|
||||
def get_properties(subject: int | str) -> dict[str, Tuple[bytes, str]]: ...
|
||||
def get_all_properties() -> dict[str, dict[str, Tuple[bytes, str]]]: ...
|
||||
def position2dict(pos: _JackPositionT) -> dict[str, Any]: ...
|
||||
def version() -> Tuple[int, int, int, int]: ...
|
||||
def version_string() -> str: ...
|
||||
def client_name_size() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user