From 45e43d72494a993188d809ef676fe3648a79e7bf Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Tue, 31 Aug 2021 12:03:27 +0200 Subject: STY: Use the PEP 457 positional-only syntax in the stub files --- numpy/lib/utils.pyi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'numpy/lib/utils.pyi') diff --git a/numpy/lib/utils.pyi b/numpy/lib/utils.pyi index c13a219b5..f0a8797ad 100644 --- a/numpy/lib/utils.pyi +++ b/numpy/lib/utils.pyi @@ -26,7 +26,7 @@ _FuncType = TypeVar("_FuncType", bound=Callable[..., Any]) # A file-like object opened in `w` mode class _SupportsWrite(Protocol[_T_contra]): - def write(self, __s: _T_contra) -> Any: ... + def write(self, s: _T_contra, /) -> Any: ... __all__: List[str] @@ -55,7 +55,8 @@ def deprecate( ) -> _Deprecate: ... @overload def deprecate( - __func: _FuncType, + func: _FuncType, + /, old_name: Optional[str] = ..., new_name: Optional[str] = ..., message: Optional[str] = ..., -- cgit v1.2.1