Enable Ruff PLC (Pylint Convention) (#13306)

This commit is contained in:
Avasam
2025-03-03 15:39:40 +01:00
committed by GitHub
parent 738cc5046a
commit 6d6e858e63
17 changed files with 173 additions and 153 deletions
+2 -2
View File
@@ -8,10 +8,10 @@ from typing_extensions import Self
from serial import Serial
_AnyStr_T = TypeVar("_AnyStr_T", contravariant=True)
_AnyStrT_contra = TypeVar("_AnyStrT_contra", contravariant=True)
@type_check_only
class _SupportsWriteAndFlush(SupportsWrite[_AnyStr_T], SupportsFlush, Protocol): ...
class _SupportsWriteAndFlush(SupportsWrite[_AnyStrT_contra], SupportsFlush, Protocol): ...
@type_check_only
class _SupportsRead(Protocol):