From c4b249c9a81c9cf17d3fa5d277ff9df69bb649dd Mon Sep 17 00:00:00 2001 From: Jia Chen Date: Sat, 4 May 2019 19:51:39 -0700 Subject: [PATCH] Use dunder parameter name in `_Writer.write` (#2954) --- stdlib/2/__builtin__.pyi | 4 ++-- stdlib/2and3/builtins.pyi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index f0f38797d..41df94608 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -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 diff --git a/stdlib/2and3/builtins.pyi b/stdlib/2and3/builtins.pyi index f0f38797d..41df94608 100644 --- a/stdlib/2and3/builtins.pyi +++ b/stdlib/2and3/builtins.pyi @@ -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