summaryrefslogtreecommitdiff
path: root/numpy/typing
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-02-23 08:02:11 -0800
committerGitHub <noreply@github.com>2022-02-23 08:02:11 -0800
commit73e48ae177c4b29cdbdbcfd39e22cf5de6c7f125 (patch)
treeb9be124845ee667fa788057c29ef90f25ec8f3a6 /numpy/typing
parent41d37b714caa1eef72f984d529f1d40ed48ce535 (diff)
parent3adabb0cba79995764ecae7f704b72e3a79eaa83 (diff)
downloadnumpy-73e48ae177c4b29cdbdbcfd39e22cf5de6c7f125.tar.gz
Merge pull request #21108 from BvB93/final
TYP, ENH: Mark non-subclassable classes as `final`
Diffstat (limited to 'numpy/typing')
-rw-r--r--numpy/typing/_ufunc.pyi10
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