diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-08-31 08:26:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 08:26:20 -0600 |
commit | 0656fc493591be2200b0b0df5e14fb547aa4702f (patch) | |
tree | b067648dccb3d19241f4fb4d6ce6c420d2401103 /numpy/lib/utils.pyi | |
parent | 160ccdb79ec429e9bab1fabb549e1351ada956f0 (diff) | |
parent | 82396851773c37220b0ac543c51b7a896ea75d96 (diff) | |
download | numpy-0656fc493591be2200b0b0df5e14fb547aa4702f.tar.gz |
Merge pull request #19802 from BvB93/pep-457
STY: Use the new PEP 457 positional-only syntax for typing
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] = ..., |