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/shape_base.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/shape_base.pyi')
-rw-r--r-- | numpy/lib/shape_base.pyi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/lib/shape_base.pyi b/numpy/lib/shape_base.pyi index 4c275cc8c..1598dc36c 100644 --- a/numpy/lib/shape_base.pyi +++ b/numpy/lib/shape_base.pyi @@ -38,15 +38,17 @@ _ArrayLike = _NestedSequence[_SupportsDType[dtype[_SCT]]] class _ArrayWrap(Protocol): def __call__( self, - __array: NDArray[Any], - __context: None | Tuple[ufunc, Tuple[Any, ...], int] = ..., + array: NDArray[Any], + context: None | Tuple[ufunc, Tuple[Any, ...], int] = ..., + /, ) -> Any: ... class _ArrayPrepare(Protocol): def __call__( self, - __array: NDArray[Any], - __context: None | Tuple[ufunc, Tuple[Any, ...], int] = ..., + array: NDArray[Any], + context: None | Tuple[ufunc, Tuple[Any, ...], int] = ..., + /, ) -> Any: ... class _SupportsArrayWrap(Protocol): |