mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 17:58:40 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -8,7 +8,7 @@ from .events import Event
|
||||
_T_contra = TypeVar("_T_contra", str, bytes, contravariant=True)
|
||||
|
||||
class _WriteStream(Protocol[_T_contra]):
|
||||
def write(self, __data: _T_contra) -> object: ...
|
||||
def write(self, data: _T_contra, /) -> object: ...
|
||||
# Optional fields:
|
||||
# encoding: str
|
||||
# def flush(self) -> object: ...
|
||||
|
||||
Reference in New Issue
Block a user