mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use dunder parameter name in _Writer.write (#2954)
This commit is contained in:
@@ -1321,11 +1321,11 @@ else:
|
||||
def ord(__c: Union[Text, bytes]) -> int: ...
|
||||
if sys.version_info >= (3,):
|
||||
class _Writer(Protocol):
|
||||
def write(self, s: str) -> Any: ...
|
||||
def write(self, __s: str) -> Any: ...
|
||||
def print(*values: object, sep: Text = ..., end: Text = ..., file: Optional[_Writer] = ..., flush: bool = ...) -> None: ...
|
||||
else:
|
||||
class _Writer(Protocol):
|
||||
def write(self, s: Any) -> Any: ...
|
||||
def write(self, __s: Any) -> Any: ...
|
||||
# This is only available after from __future__ import print_function.
|
||||
def print(*values: object, sep: Text = ..., end: Text = ..., file: Optional[_Writer] = ...) -> None: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user