diff options
| author | Pratyay Banerjee <dev@neilblaze.live> | 2023-03-31 11:08:54 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-30 22:38:54 -0700 |
| commit | b50568d9e758b489c2a3c409ef4e57b67820f090 (patch) | |
| tree | dfbbac85a9396415748907bc78e103e106b883b2 /numpy | |
| parent | 7b27c3ebe7f35684aeb2dfa2fd3125b2a69aed49 (diff) | |
| download | numpy-b50568d9e758b489c2a3c409ef4e57b67820f090.tar.gz | |
DOC: Fix typos & grammer in docstrings and comments (#23503)
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/einsumfunc.py | 2 | ||||
| -rw-r--r-- | numpy/core/fromnumeric.py | 2 | ||||
| -rw-r--r-- | numpy/core/setup.py | 2 | ||||
| -rw-r--r-- | numpy/exceptions.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py index d6c5885b8..01966f0fe 100644 --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -728,7 +728,7 @@ def einsum_path(*operands, optimize='greedy', einsum_call=False): * if False no optimization is taken * if True defaults to the 'greedy' algorithm * 'optimal' An algorithm that combinatorially explores all possible - ways of contracting the listed tensors and choosest the least costly + ways of contracting the listed tensors and chooses the least costly path. Scales exponentially with the number of terms in the contraction. * 'greedy' An algorithm that chooses the best pair contraction diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index b36667427..88c66d9a4 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -3802,7 +3802,7 @@ def var(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue, *, # Aliases of other functions. Provided unique docstrings -# are reference purposes only. Wherever possible, +# are for reference purposes only. Wherever possible, # avoid using them. diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 52b17bfc8..77561827a 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -20,7 +20,7 @@ from setup_common import * # noqa: F403 NPY_RELAXED_STRIDES_CHECKING = (os.environ.get('NPY_RELAXED_STRIDES_CHECKING', "1") != "0") if not NPY_RELAXED_STRIDES_CHECKING: raise SystemError( - "Support for NPY_RELAXED_STRIDES_CHECKING=0 has been remove as of " + "Support for NPY_RELAXED_STRIDES_CHECKING=0 has been removed as of " "NumPy 1.23. This error will eventually be removed entirely.") # Put NPY_RELAXED_STRIDES_DEBUG=1 in the environment if you want numpy to use a diff --git a/numpy/exceptions.py b/numpy/exceptions.py index 73ad5ea6d..2f8438101 100644 --- a/numpy/exceptions.py +++ b/numpy/exceptions.py @@ -60,7 +60,7 @@ class ModuleDeprecationWarning(DeprecationWarning): .. warning:: - This warning should not be used, since nose testing is not relvant + This warning should not be used, since nose testing is not relevant anymore. The nose tester turns ordinary Deprecation warnings into test failures. |
