diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-08-31 12:03:27 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-08-31 12:06:25 +0200 |
commit | 45e43d72494a993188d809ef676fe3648a79e7bf (patch) | |
tree | ec0ac1f971d1d60109cedae8ed07181c6119986f /numpy/lib/utils.pyi | |
parent | b21ad7c5ee0cd76ea41bb519877804457d1776f8 (diff) | |
download | numpy-45e43d72494a993188d809ef676fe3648a79e7bf.tar.gz |
STY: Use the PEP 457 positional-only syntax in the stub files
Diffstat (limited to 'numpy/lib/utils.pyi')
-rw-r--r-- | numpy/lib/utils.pyi | 5 |
1 files changed, 3 insertions, 2 deletions
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] = ..., |