summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.pyi
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-08-31 08:26:20 -0600
committerGitHub <noreply@github.com>2021-08-31 08:26:20 -0600
commit0656fc493591be2200b0b0df5e14fb547aa4702f (patch)
treeb067648dccb3d19241f4fb4d6ce6c420d2401103 /numpy/lib/utils.pyi
parent160ccdb79ec429e9bab1fabb549e1351ada956f0 (diff)
parent82396851773c37220b0ac543c51b7a896ea75d96 (diff)
downloadnumpy-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.pyi5
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] = ...,