mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 21:12:25 +08:00
Upgrade Black and Ruff (#13443)
This commit is contained in:
@@ -10,4 +10,4 @@ def update_text(msg: str) -> None: ...
|
||||
def close() -> None: ...
|
||||
|
||||
CLOSE_CONNECTION: Final = b"\x04"
|
||||
FLUSH_CHARACTER: Final = b"\x0D"
|
||||
FLUSH_CHARACTER: Final = b"\x0d"
|
||||
|
||||
@@ -7,7 +7,7 @@ from typing_extensions import Self
|
||||
|
||||
from serial import Serial
|
||||
|
||||
_P = TypeVar("_P", bound=Protocol, default="Protocol") # noqa: Y020
|
||||
_P = TypeVar("_P", bound=Protocol, default=Protocol)
|
||||
|
||||
class Protocol:
|
||||
def connection_made(self, transport: ReaderThread[Self]) -> None: ...
|
||||
|
||||
@@ -111,7 +111,7 @@ def HexColor(val: str | int, htmlOnly: bool = False, hasAlpha: bool = False) ->
|
||||
def linearlyInterpolatedColor(c0: _ColorT, c1: _ColorT, x0: float, x1: float, x: float) -> _ColorT: ...
|
||||
@overload
|
||||
def obj_R_G_B(
|
||||
c: Color | list[float] | tuple[float, float, float, float] | tuple[float, float, float]
|
||||
c: Color | list[float] | tuple[float, float, float, float] | tuple[float, float, float],
|
||||
) -> tuple[float, float, float]: ...
|
||||
@overload
|
||||
def obj_R_G_B(c: None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user