summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2019-12-30 14:42:55 +0100
committerhippo91 <guillaume.peillex@gmail.com>2019-12-30 14:42:55 +0100
commit14de71c7838e4bae329292035f1a225aa5218317 (patch)
tree8093dd9861882a8adb15d40c0a76a90b397be91b
parente3e2d8a8e9fc3b1bdc0d7e8471313ce18f25d613 (diff)
parent67321ee2f97b5b096acee9d2395a32bb6e68083a (diff)
downloadastroid-git-14de71c7838e4bae329292035f1a225aa5218317.tar.gz
Merge branch 'master' into sum_and_multiply
-rw-r--r--ChangeLog4
-rw-r--r--astroid/brain/brain_numpy_core_umath.py6
-rw-r--r--tests/unittest_brain_numpy_core_umath.py6
3 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d66b3710..2fca581d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,10 @@ Release Date: TBA
Close #669
+* Added some functions to the ``brain_numpy_core_umath`` module
+
+ Close PyCQA/pylint#3319
+
* Added some functions of the ``numpy.core.multiarray`` module
Close PyCQA/pylint#3208
diff --git a/astroid/brain/brain_numpy_core_umath.py b/astroid/brain/brain_numpy_core_umath.py
index 1a1788d2..69a3a90d 100644
--- a/astroid/brain/brain_numpy_core_umath.py
+++ b/astroid/brain/brain_numpy_core_umath.py
@@ -88,6 +88,7 @@ def numpy_core_umath_transform():
logical_not = FakeUfuncOneArg()
modf = FakeUfuncOneArgBis()
negative = FakeUfuncOneArg()
+ positive = FakeUfuncOneArg()
rad2deg = FakeUfuncOneArg()
reciprocal = FakeUfuncOneArg()
rint = FakeUfuncOneArg()
@@ -107,13 +108,18 @@ def numpy_core_umath_transform():
bitwise_xor = FakeUfuncTwoArgs()
copysign = FakeUfuncTwoArgs()
divide = FakeUfuncTwoArgs()
+ divmod = FakeUfuncTwoArgs()
equal = FakeUfuncTwoArgs()
+ float_power = FakeUfuncTwoArgs()
floor_divide = FakeUfuncTwoArgs()
fmax = FakeUfuncTwoArgs()
fmin = FakeUfuncTwoArgs()
fmod = FakeUfuncTwoArgs()
greater = FakeUfuncTwoArgs()
+ gcd = FakeUfuncTwoArgs()
hypot = FakeUfuncTwoArgs()
+ heaviside = FakeUfuncTwoArgs()
+ lcm = FakeUfuncTwoArgs()
ldexp = FakeUfuncTwoArgs()
left_shift = FakeUfuncTwoArgs()
less = FakeUfuncTwoArgs()
diff --git a/tests/unittest_brain_numpy_core_umath.py b/tests/unittest_brain_numpy_core_umath.py
index 2a78a1eb..e6fb1c5e 100644
--- a/tests/unittest_brain_numpy_core_umath.py
+++ b/tests/unittest_brain_numpy_core_umath.py
@@ -47,6 +47,7 @@ class NumpyBrainCoreUmathTest(unittest.TestCase):
"logical_not",
"modf",
"negative",
+ "positive",
"rad2deg",
"reciprocal",
"rint",
@@ -66,13 +67,18 @@ class NumpyBrainCoreUmathTest(unittest.TestCase):
"bitwise_xor",
"copysign",
"divide",
+ "divmod",
"equal",
+ "float_power",
"floor_divide",
"fmax",
"fmin",
"fmod",
+ "gcd",
"greater",
+ "heaviside",
"hypot",
+ "lcm",
"ldexp",
"left_shift",
"less",