mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Introduce _typeshed.SupportsFlush (#10983)
This commit is contained in:
@@ -18,6 +18,7 @@ from _typeshed import (
|
||||
SupportsAiter,
|
||||
SupportsAnext,
|
||||
SupportsDivMod,
|
||||
SupportsFlush,
|
||||
SupportsIter,
|
||||
SupportsKeysAndGetItem,
|
||||
SupportsLenAndGetItem,
|
||||
@@ -1637,8 +1638,7 @@ def open(
|
||||
) -> IO[Any]: ...
|
||||
def ord(__c: str | bytes | bytearray) -> int: ...
|
||||
|
||||
class _SupportsWriteAndFlush(SupportsWrite[_T_contra], Protocol[_T_contra]):
|
||||
def flush(self) -> None: ...
|
||||
class _SupportsWriteAndFlush(SupportsWrite[_T_contra], SupportsFlush, Protocol[_T_contra]): ...
|
||||
|
||||
@overload
|
||||
def print(
|
||||
|
||||
Reference in New Issue
Block a user