diff options
| author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-02-22 21:34:09 +0100 |
|---|---|---|
| committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-02-22 21:34:09 +0100 |
| commit | 99efe5768ea1451583e0e06da7ced07b1aa4419f (patch) | |
| tree | 2c87ea4d9f466d24dc6475581df74ca263ac4f9b /numpy/typing | |
| parent | a804f894153ab0cc1f47c4ab176aecc782583995 (diff) | |
| download | numpy-99efe5768ea1451583e0e06da7ced07b1aa4419f.tar.gz | |
ENH: Mark non-subclassable types as `final`
Diffstat (limited to 'numpy/typing')
| -rw-r--r-- | numpy/typing/_ufunc.pyi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/typing/_ufunc.pyi b/numpy/typing/_ufunc.pyi index 703b7f925..ee0317cf9 100644 --- a/numpy/typing/_ufunc.pyi +++ b/numpy/typing/_ufunc.pyi @@ -48,7 +48,7 @@ _NameType = TypeVar("_NameType", bound=str) # NOTE: If 2 output types are returned then `out` must be a # 2-tuple of arrays. Otherwise `None` or a plain array are also acceptable -class _UFunc_Nin1_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): +class _UFunc_Nin1_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): # type: ignore[misc] @property def __name__(self) -> _NameType: ... @property @@ -108,7 +108,7 @@ class _UFunc_Nin1_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): /, ) -> None: ... -class _UFunc_Nin2_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): +class _UFunc_Nin2_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): # type: ignore[misc] @property def __name__(self) -> _NameType: ... @property @@ -223,7 +223,7 @@ class _UFunc_Nin2_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): extobj: list[Any] = ..., ) -> NDArray[Any]: ... -class _UFunc_Nin1_Nout2(ufunc, Generic[_NameType, _NTypes, _IDType]): +class _UFunc_Nin1_Nout2(ufunc, Generic[_NameType, _NTypes, _IDType]): # type: ignore[misc] @property def __name__(self) -> _NameType: ... @property @@ -281,7 +281,7 @@ class _UFunc_Nin1_Nout2(ufunc, Generic[_NameType, _NTypes, _IDType]): extobj: list[Any] = ..., ) -> _2Tuple[NDArray[Any]]: ... -class _UFunc_Nin2_Nout2(ufunc, Generic[_NameType, _NTypes, _IDType]): +class _UFunc_Nin2_Nout2(ufunc, Generic[_NameType, _NTypes, _IDType]): # type: ignore[misc] @property def __name__(self) -> _NameType: ... @property @@ -341,7 +341,7 @@ class _UFunc_Nin2_Nout2(ufunc, Generic[_NameType, _NTypes, _IDType]): extobj: list[Any] = ..., ) -> _2Tuple[NDArray[Any]]: ... -class _GUFunc_Nin2_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): +class _GUFunc_Nin2_Nout1(ufunc, Generic[_NameType, _NTypes, _IDType]): # type: ignore[misc] @property def __name__(self) -> _NameType: ... @property |
