summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2021-03-05 16:04:49 +0100
committerhippo91 <guillaume.peillex@gmail.com>2021-03-05 16:04:49 +0100
commit7409caf9a897d3d85d5b5479811326942e933bad (patch)
treefa451e1e2de2ac80c3013aaea4d2b87d5b0a43ed /astroid
parent1d3490b92d1416a1a575a189fefe7b3b088236b1 (diff)
downloadastroid-git-7409caf9a897d3d85d5b5479811326942e933bad.tar.gz
Reformats according to black
Diffstat (limited to 'astroid')
-rw-r--r--astroid/brain/brain_numpy_utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/astroid/brain/brain_numpy_utils.py b/astroid/brain/brain_numpy_utils.py
index f3058b4b..de1b6f58 100644
--- a/astroid/brain/brain_numpy_utils.py
+++ b/astroid/brain/brain_numpy_utils.py
@@ -33,7 +33,10 @@ def _is_a_numpy_module(node: astroid.node_classes.Name) -> bool:
x for x in node.lookup(module_nickname)[1] if isinstance(x, astroid.Import)
]
for target in potential_import_target:
- if ("numpy", module_nickname) in target.names or ("numpy", None) in target.names:
+ if ("numpy", module_nickname) in target.names or (
+ "numpy",
+ None,
+ ) in target.names:
return True
return False