Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update astroid to 2.5.2 #58

Merged
merged 1 commit into from
Mar 28, 2021
Merged

Conversation

pyup-bot
Copy link
Collaborator

This PR updates astroid from 2.4.2 to 2.5.2.

Changelog

2.5.2

============================
Release Date: 2021-03-28

* Detects `import numpy` as a valid `numpy` import.

Closes PyCQA/pylint3974

* Iterate over ``Keywords`` when using ``ClassDef.get_children``

Closes PyCQA/pylint3202

2.5.1

============================
Release Date: 2021-02-28

* The ``context.path`` is reverted to a set because otherwise it leads to false positives
for non `numpy` functions.

Closes 895 899

* Don't transform dataclass ClassVars

* Improve typing.TypedDict inference

* Fix the `Duplicates found in MROs` false positive.

Closes 905
Closes PyCQA/pylint2717
Closes PyCQA/pylint3247
Closes PyCQA/pylint4093
Closes PyCQA/pylint4131
Closes PyCQA/pylint4145

2.5

============================
Release Date: 2021-02-15

* Adds `attr_fset` in the `PropertyModel` class.

Fixes PyCQA/pylint3480

* Remove support for Python 3.5.
* Remove the runtime dependency on ``six``. The ``six`` brain remains in
astroid.

Fixes PyCQA/astroid863

* Enrich the ``brain_collection`` module so that ``__class_getitem__`` method is added to `deque` for
``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.

Close 669

* Adds a brain for type object so that it is possible to write `type[int]` in annotation.

Fixes PyCQA/pylint4001

* Add ``__class_getitem__`` method to ``subprocess.Popen`` brain under Python 3.9 so that it is seen as subscriptable by pylint.

Fixes PyCQA/pylint4034


* Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the `numpy` brain. Adds `random` function in the `numpy.random` brain.

Fixes PyCQA/pylint3856

* Fix deprecated importlib methods

Closes 703

* Fix a crash in inference caused by `Uninferable` container elements

Close 866

* Add `python 3.9` support.

* The flat attribute of ``numpy.ndarray`` is now inferred as an ``numpy.ndarray`` itself.
It should be a ``numpy.flatiter`` instance, but this class is not yet available in the numpy brain.

Fixes PyCQA/pylint3640

* Fix a bug for dunder methods inference of function objects

Fixes 819

* Fixes a bug in the signature of the ``ndarray.__or__`` method,
in the ``brain_numpy_ndarray.py`` module.

Fixes 815

* Fixes a to-list cast bug in ``starred_assigned_stmts`` method,
in the ``protocols.py` module.

* Added a brain for ``hypothesis.strategies.composite``

* The transpose of a ``numpy.ndarray`` is also a ``numpy.ndarray``

Fixes PyCQA/pylint3387

* Added a brain for ``sqlalchemy.orm.session``

* Separate string and bytes classes patching

Fixes PyCQA/pylint3599

* Prevent recursion error for self referential length calls

Close 777

* Added missing methods to the brain for ``mechanize``, to fix pylint false positives

Close 793

* Added more supported parameters to ``subprocess.check_output``

* Fix recursion errors with pandas

Fixes PyCQA/pylint2843
Fixes PyCQA/pylint2811

* Added exception inference for `UnicodeDecodeError`

Close PyCQA/pylint3639

* `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests

Close PyCQA/pylint3583

* Fixed exception-chaining error messages.

* Fix failure to infer base class type with multiple inheritance and qualified names

Fixes 843

* Fix interpretation of ``six.with_metaclass`` class definitions.

Fixes 713

* Reduce memory usage of astroid's module cache.

* Remove dependency on `imp`.

Close 594
Close 681

* Do not crash when encountering starred assignments in enums.

Close 835

* Fix a crash in functools.partial inference when the arguments cannot be determined

Close PyCQA/pylint3776

* Fix a crash caused by a lookup of a monkey-patched method

Close PyCQA/pylint3686

* ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodes

This fixes a false positive with the `assignment-from-no-return` pylint check.

Close PyCQA/pylint3904

* Corrected the parent of function type comment nodes.

These nodes used to be parented to their original ast.FunctionDef parent
but are now correctly parented to their astroid.FunctionDef parent.

Close PyCQA/astroid851
Links

@pyup-bot pyup-bot mentioned this pull request Mar 28, 2021
@codecov
Copy link

codecov bot commented Mar 28, 2021

Codecov Report

Merging #58 (11744f2) into master (bb403bc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #58   +/-   ##
=======================================
  Coverage   67.85%   67.85%           
=======================================
  Files           2        2           
  Lines          56       56           
=======================================
  Hits           38       38           
  Misses         18       18           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb403bc...11744f2. Read the comment docs.

@aragilar
Copy link
Owner

bors r+

bors bot added a commit that referenced this pull request Mar 28, 2021
58: Update astroid to 2.5.2 r=aragilar a=pyup-bot


This PR updates [astroid](https://pypi.org/project/astroid) from **2.4.2** to **2.5.2**.



<details>
  <summary>Changelog</summary>
  
  
   ### 2.5.2
   ```
   ============================
Release Date: 2021-03-28

* Detects `import numpy` as a valid `numpy` import.

  Closes PyCQA/pylint3974

* Iterate over ``Keywords`` when using ``ClassDef.get_children``

  Closes PyCQA/pylint3202
   ```
   
  
  
   ### 2.5.1
   ```
   ============================
Release Date: 2021-02-28

* The ``context.path`` is reverted to a set because otherwise it leads to false positives
  for non `numpy` functions.

  Closes 895 899

* Don&#39;t transform dataclass ClassVars

* Improve typing.TypedDict inference

* Fix the `Duplicates found in MROs` false positive.

  Closes 905
  Closes PyCQA/pylint2717
  Closes PyCQA/pylint3247
  Closes PyCQA/pylint4093
  Closes PyCQA/pylint4131
  Closes PyCQA/pylint4145
   ```
   
  
  
   ### 2.5
   ```
   ============================
Release Date: 2021-02-15

* Adds `attr_fset` in the `PropertyModel` class.

  Fixes PyCQA/pylint3480

* Remove support for Python 3.5.
* Remove the runtime dependency on ``six``. The ``six`` brain remains in
  astroid.

  Fixes PyCQA/astroid863

* Enrich the ``brain_collection`` module so that ``__class_getitem__`` method is added to `deque` for
  ``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.

  Close 669

* Adds a brain for type object so that it is possible to write `type[int]` in annotation.

  Fixes PyCQA/pylint4001

* Add ``__class_getitem__`` method to ``subprocess.Popen`` brain under Python 3.9 so that it is seen as subscriptable by pylint.

  Fixes PyCQA/pylint4034


* Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the `numpy` brain. Adds `random` function in the `numpy.random` brain.

  Fixes PyCQA/pylint3856

* Fix deprecated importlib methods

  Closes 703

* Fix a crash in inference caused by `Uninferable` container elements

  Close 866

* Add `python 3.9` support.

* The flat attribute of ``numpy.ndarray`` is now inferred as an ``numpy.ndarray`` itself.
  It should be a ``numpy.flatiter`` instance, but this class is not yet available in the numpy brain.

  Fixes PyCQA/pylint3640

* Fix a bug for dunder methods inference of function objects

  Fixes 819

* Fixes a bug in the signature of the ``ndarray.__or__`` method,
  in the ``brain_numpy_ndarray.py`` module.

  Fixes 815

* Fixes a to-list cast bug in ``starred_assigned_stmts`` method,
  in the ``protocols.py` module.

* Added a brain for ``hypothesis.strategies.composite``

* The transpose of a ``numpy.ndarray`` is also a ``numpy.ndarray``

  Fixes PyCQA/pylint3387

* Added a brain for ``sqlalchemy.orm.session``

* Separate string and bytes classes patching

  Fixes PyCQA/pylint3599

* Prevent recursion error for self referential length calls

  Close 777

* Added missing methods to the brain for ``mechanize``, to fix pylint false positives

  Close 793

* Added more supported parameters to ``subprocess.check_output``

* Fix recursion errors with pandas

  Fixes PyCQA/pylint2843
  Fixes PyCQA/pylint2811

* Added exception inference for `UnicodeDecodeError`

  Close PyCQA/pylint3639

* `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests

  Close PyCQA/pylint3583

* Fixed exception-chaining error messages.

* Fix failure to infer base class type with multiple inheritance and qualified names

  Fixes 843

* Fix interpretation of ``six.with_metaclass`` class definitions.

  Fixes 713

* Reduce memory usage of astroid&#39;s module cache.

* Remove dependency on `imp`.

  Close 594
  Close 681

* Do not crash when encountering starred assignments in enums.

  Close 835

* Fix a crash in functools.partial inference when the arguments cannot be determined

  Close PyCQA/pylint3776

* Fix a crash caused by a lookup of a monkey-patched method

  Close PyCQA/pylint3686

* ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodes

  This fixes a false positive with the `assignment-from-no-return` pylint check.

  Close PyCQA/pylint3904

* Corrected the parent of function type comment nodes.

  These nodes used to be parented to their original ast.FunctionDef parent
  but are now correctly parented to their astroid.FunctionDef parent.

  Close PyCQA/astroid851
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/astroid
  - Changelog: https://pyup.io/changelogs/astroid/
  - Repo: https://github.com/PyCQA/astroid
</details>



Co-authored-by: pyup-bot <[email protected]>
@bors
Copy link
Contributor

bors bot commented Mar 28, 2021

Build failed:

@aragilar aragilar merged commit f476dd3 into master Mar 28, 2021
@aragilar aragilar deleted the pyup-update-astroid-2.4.2-to-2.5.2 branch March 28, 2021 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants