mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-13 03:21:07 +08:00
Enable Ruff PLC (Pylint Convention) (#13306)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user