Enable Ruff PLC (Pylint Convention) (#13306)

This commit is contained in:
Avasam authored and GitHub committed 2025-03-03 15:39:40 +01:00
1 parent 738cc5046a
commit 6d6e858e63
17 files changed
+173 -153

No files matched your search

+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):