Skip to content

Commit

Permalink
Last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Mar 9, 2022
1 parent c3504e0 commit aeb1bf8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ Release date: TBA

Closes #1410

* Fix false positive for ``shape`` parameter of ``numpy.zeros_like`` method.

Closes PyCQA/pylint#5871

* Set ``end_lineno`` and ``end_col_offset`` attributes to ``None`` for all nodes
with PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead
to unexpected errors. Overwriting them with ``None`` will cause a fallback
to the already supported way of PyPy 3.7.

* Add missing ``shape`` parameter to numpy ``zeros_like``, ``ones_like``,
and ``full_like`` methods.

Closes PyCQA/pylint#5871


What's New in astroid 2.10.1?
=============================
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_brain.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
attrs
types-attrs
nose
numpy
numpy>=1.17.0
python-dateutil
types-python-dateutil
six
Expand Down
2 changes: 1 addition & 1 deletion tests/unittest_brain_numpy_core_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_function_parameters(method: str, expected_args: List[str]) -> None:
numpy.{method} #@
"""
)
actual_args = list(instance.infer())[0].args.args
actual_args = instance.inferred()[0].args.args
assert [arg.name for arg in actual_args] == expected_args


Expand Down

0 comments on commit aeb1bf8

Please sign in to comment.