diff options
| author | Thomas Mansencal <thomas.mansencal@gmail.com> | 2022-07-04 03:20:40 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-03 17:20:40 +0200 |
| commit | 353fea031dacf2c31399cc938f545cfcfdc9c57c (patch) | |
| tree | ac3966dbc67cdba3fd88ab628974c46fa121f785 /numpy/_typing | |
| parent | f9290124fa7b027e24485d2e1319160c27040824 (diff) | |
| download | numpy-353fea031dacf2c31399cc938f545cfcfdc9c57c.tar.gz | |
DOC: fix typo in `numpy._typing._NestedSequence` docstring example (#21909)
[ci skip]
Diffstat (limited to 'numpy/_typing')
| -rw-r--r-- | numpy/_typing/_nested_sequence.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/_typing/_nested_sequence.py b/numpy/_typing/_nested_sequence.py index 7c12c4a87..360c0f1b2 100644 --- a/numpy/_typing/_nested_sequence.py +++ b/numpy/_typing/_nested_sequence.py @@ -36,9 +36,9 @@ class _NestedSequence(Protocol[_T_co]): >>> from typing import TYPE_CHECKING >>> import numpy as np - >>> from numpy._typing import _NestedSequnce + >>> from numpy._typing import _NestedSequence - >>> def get_dtype(seq: _NestedSequnce[float]) -> np.dtype[np.float64]: + >>> def get_dtype(seq: _NestedSequence[float]) -> np.dtype[np.float64]: ... return np.asarray(seq).dtype >>> a = get_dtype([1.0]) |
