Upgrade Black and Ruff (#13443)

This commit is contained in:
Alex Waygood
2025-01-29 22:47:58 +00:00
committed by GitHub
parent 89b49d207b
commit c193cd2a36
8 changed files with 11 additions and 11 deletions

View File

@@ -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"

View File

@@ -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: ...

View File

@@ -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: ...