mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-19 04:11:26 +08:00
Enable Ruff PLC (Pylint Convention) (#13306)
This commit is contained in:
1 parent
738cc5046a
commit
6d6e858e63
17 files changed
+173
-153
No files matched your search
@@ -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