summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-18 15:02:03 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-18 15:03:40 +0200
commit0bd5e822d5e6431f23e2d6ebd38d73c98ed0254f (patch)
tree59e9d569b3070451c5411c7f0483b74505bd4212
parent221bd5ab6c2a731666b6e8a80dc869ee2aaf3d13 (diff)
downloadastroid-git-0bd5e822d5e6431f23e2d6ebd38d73c98ed0254f.tar.gz
Remove non-breaking whitespaces from the codebase
-rw-r--r--ChangeLog4
-rw-r--r--astroid/brain/brain_numpy_core_numerictypes.py2
-rw-r--r--astroid/brain/brain_numpy_core_umath.py6
-rw-r--r--astroid/brain/brain_numpy_ndarray.py2
-rw-r--r--tests/unittest_brain_numpy_random_mtrand.py2
5 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index e654ca46..19799af5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -76,7 +76,7 @@ Release Date: 2021-02-15
Fixes PyCQA/astroid#863
* Enrich the ``brain_collection`` module so that ``__class_getitem__`` method is added to `deque` for
- ``python`` version above 3.9.
+ ``python`` version above 3.9.
* The ``context.path`` is now a ``dict`` and the ``context.push`` method
returns ``True`` if the node has been visited a certain amount of times.
@@ -92,7 +92,7 @@ Release Date: 2021-02-15
Fixes PyCQA/pylint#4034
-* Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the `numpy` brain. Adds `random` function in the `numpy.random` brain.
+* Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the `numpy` brain. Adds `random` function in the `numpy.random` brain.
Fixes PyCQA/pylint#3856
diff --git a/astroid/brain/brain_numpy_core_numerictypes.py b/astroid/brain/brain_numpy_core_numerictypes.py
index 324d5e5d..ecdabbff 100644
--- a/astroid/brain/brain_numpy_core_numerictypes.py
+++ b/astroid/brain/brain_numpy_core_numerictypes.py
@@ -27,7 +27,7 @@ def numpy_core_numerictypes_transform():
self.dtype = None
self.flags = None
# Should be a numpy.flatiter instance but not available for now
- # Putting an array instead so that iteration and indexing are authorized
+ # Putting an array instead so that iteration and indexing are authorized
self.flat = np.ndarray([0, 0])
self.imag = None
self.itemsize = None
diff --git a/astroid/brain/brain_numpy_core_umath.py b/astroid/brain/brain_numpy_core_umath.py
index 896ae0e6..5bf8ac73 100644
--- a/astroid/brain/brain_numpy_core_umath.py
+++ b/astroid/brain/brain_numpy_core_umath.py
@@ -5,8 +5,10 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/LICENSE
-#  Note: starting with version 1.18 numpy module has `__getattr__` method which prevent `pylint` to emit `no-member` message for
-#  all numpy's attributes. (see pylint's module typecheck in `_emit_no_member` function)
+# Note: starting with version 1.18 numpy module has `__getattr__` method which prevent
+# `pylint` to emit `no-member` message for all numpy's attributes. (see pylint's module
+# typecheck in `_emit_no_member` function)
+
"""Astroid hooks for numpy.core.umath module."""
import astroid
diff --git a/astroid/brain/brain_numpy_ndarray.py b/astroid/brain/brain_numpy_ndarray.py
index a601cafd..b0a6e9d3 100644
--- a/astroid/brain/brain_numpy_ndarray.py
+++ b/astroid/brain/brain_numpy_ndarray.py
@@ -24,7 +24,7 @@ def infer_numpy_ndarray(node, context=None):
self.dtype = None
self.flags = None
# Should be a numpy.flatiter instance but not available for now
- # Putting an array instead so that iteration and indexing are authorized
+ # Putting an array instead so that iteration and indexing are authorized
self.flat = np.ndarray([0, 0])
self.imag = np.ndarray([0, 0])
self.itemsize = None
diff --git a/tests/unittest_brain_numpy_random_mtrand.py b/tests/unittest_brain_numpy_random_mtrand.py
index e6947004..0bc1a67c 100644
--- a/tests/unittest_brain_numpy_random_mtrand.py
+++ b/tests/unittest_brain_numpy_random_mtrand.py
@@ -24,7 +24,7 @@ class NumpyBrainRandomMtrandTest(unittest.TestCase):
Test of all the functions of numpy.random.mtrand module.
"""
- #  Map between functions names and arguments names and default values
+ # Map between functions names and arguments names and default values
all_mtrand = {
"beta": (["a", "b", "size"], [None]),
"binomial": (["n", "p", "size"], [None]),