diff options
| author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-02-23 15:43:47 +0100 |
|---|---|---|
| committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-02-23 15:43:47 +0100 |
| commit | 3adabb0cba79995764ecae7f704b72e3a79eaa83 (patch) | |
| tree | 0d99b6b10f3ae425320127da2f4b19650262454f | |
| parent | 99efe5768ea1451583e0e06da7ced07b1aa4419f (diff) | |
| download | numpy-3adabb0cba79995764ecae7f704b72e3a79eaa83.tar.gz | |
ENH: Mark `np.dtype` as `final`
| -rw-r--r-- | numpy/__init__.pyi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 6def46d2c..6ecb3d2da 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -676,6 +676,7 @@ _NdArraySubClass = TypeVar("_NdArraySubClass", bound=ndarray) _DTypeScalar_co = TypeVar("_DTypeScalar_co", covariant=True, bound=generic) _ByteOrder = L["S", "<", ">", "=", "|", "L", "B", "N", "I"] +@final class dtype(Generic[_DTypeScalar_co]): names: None | tuple[builtins.str, ...] # Overload for subclass of generic |
