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.8.0 #101

Closed
wants to merge 1 commit into from
Closed

Conversation

pyup-bot
Copy link
Collaborator

This PR updates astroid from 2.6.6 to 2.8.0.

Changelog

2.8.0

============================
Release date: 2021-09-14

* Add additional deprecation warnings in preparation for astroid 3.0

* Require attributes for some node classes with ``__init__`` call.

 * ``name`` (``str``) for ``Name``, ``AssignName``, ``DelName``
 * ``attrname`` (``str``) for ``Attribute``, ``AssignAttr``, ``DelAttr``
 * ``op`` (``str``) for ``AugAssign``, ``BinOp``, ``BoolOp``, ``UnaryOp``
 * ``names`` (``list[tuple[str, str | None]]``) for ``Import``

* Support pyz imports

Closes PyCQA/pylint3887

* Add ``node_ancestors`` method to ``NodeNG`` for obtaining the ancestors of nodes.

* It's now possible to infer the value of comparison nodes

Closes 846

* Fixed bug in inference of dataclass field calls.

 Closes PyCQA/pylint4963

2.7.3

============================
Release date: 2021-08-30

* The transforms related to a module are applied only if this module has not been explicitly authorized to be imported
(i.e is not in AstroidManager.extension_package_whitelist). Solves the following issues if numpy is authorized to be imported
through the `extension-pkg-allow-list` option.

Closes PyCQA/pylint3342
Closes PyCQA/pylint4326

* Fixed bug in attribute inference from inside method calls.

 Closes PyCQA/pylint400

* Fixed bug in inference for superclass instance methods called
from the class rather than an instance.

 Closes 1008
 Closes PyCQA/pylint4377

* Fixed bug in inference of chained attributes where a subclass
had an attribute that was an instance of its superclass.

 Closes PyCQA/pylint4220

* Adds a brain for the ctypes module.

Closes PyCQA/pylint4896

* When processing dataclass attributes, exclude the same type hints from abc.collections
as from typing.

Closes PyCQA/pylint4895

* Apply dataclass inference to pydantic's dataclasses.

Closes PyCQA/pylint4899

2.7.2

============================
Release date: 2021-08-20

* ``BaseContainer`` is now public, and will replace ``_BaseContainer`` completely in astroid 3.0.
* The call cache used by inference functions produced by ``inference_tip``
can now be cleared via ``clear_inference_tip_cache``.

* ``astroid.const.BUILTINS`` and ``astroid.bases.BUILTINS`` are not used internally anymore
and will be removed in astroid 3.0. Simply replace this by the string 'builtins' for better
performances and clarity.

* Add inference for dataclass initializer method.

 Closes PyCQA/pylint3201

2.7.1

============================
Release date: 2021-08-16

* When processing dataclass attributes, only do typing inference on collection types.
Support for instantiating other typing types is left for the future, if desired.

Closes 1129

* Fixed LookupMixIn missing from ``astroid.node_classes``.

2.7.0

============================
Release date: 2021-08-15

* Import from ``astroid.node_classes`` and ``astroid.scoped_nodes`` has been deprecated in favor of
``astroid.nodes``. Only the imports from ``astroid.nodes`` will work in astroid 3.0.0.

* Add support for arbitrary Enum subclass hierachies

Closes PyCQA/pylint533
Closes PyCQA/pylint2224
Closes PyCQA/pylint2626

* Add inference tips for dataclass attributes, including dataclasses.field calls.
Also add support for InitVar.

Closes PyCQA/pylint2600
Closes PyCQA/pylint2698
Closes PyCQA/pylint3405
Closes PyCQA/pylint3794

* Adds a brain that deals with dynamic import of `IsolatedAsyncioTestCase` class of the `unittest` module.

Closes PyCQA/pylint4060
Links

@pyup-bot pyup-bot mentioned this pull request Sep 14, 2021
@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #101 (ddc99e0) into master (9307f73) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #101   +/-   ##
=======================================
  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 9307f73...ddc99e0. Read the comment docs.

@aragilar
Copy link
Owner

bors r+

bors bot added a commit that referenced this pull request Sep 17, 2021
101: Update astroid to 2.8.0 r=aragilar a=pyup-bot


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



<details>
  <summary>Changelog</summary>
  
  
   ### 2.8.0
   ```
   ============================
Release date: 2021-09-14

* Add additional deprecation warnings in preparation for astroid 3.0

  * Require attributes for some node classes with ``__init__`` call.

    * ``name`` (``str``) for ``Name``, ``AssignName``, ``DelName``
    * ``attrname`` (``str``) for ``Attribute``, ``AssignAttr``, ``DelAttr``
    * ``op`` (``str``) for ``AugAssign``, ``BinOp``, ``BoolOp``, ``UnaryOp``
    * ``names`` (``list[tuple[str, str | None]]``) for ``Import``

* Support pyz imports

  Closes PyCQA/pylint3887

* Add ``node_ancestors`` method to ``NodeNG`` for obtaining the ancestors of nodes.

* It&#39;s now possible to infer the value of comparison nodes

  Closes 846

* Fixed bug in inference of dataclass field calls.

    Closes PyCQA/pylint4963
   ```
   
  
  
   ### 2.7.3
   ```
   ============================
Release date: 2021-08-30

* The transforms related to a module are applied only if this module has not been explicitly authorized to be imported
  (i.e is not in AstroidManager.extension_package_whitelist). Solves the following issues if numpy is authorized to be imported
  through the `extension-pkg-allow-list` option.

  Closes PyCQA/pylint3342
  Closes PyCQA/pylint4326

* Fixed bug in attribute inference from inside method calls.

    Closes PyCQA/pylint400

* Fixed bug in inference for superclass instance methods called
  from the class rather than an instance.

    Closes 1008
    Closes PyCQA/pylint4377

* Fixed bug in inference of chained attributes where a subclass
  had an attribute that was an instance of its superclass.

    Closes PyCQA/pylint4220

* Adds a brain for the ctypes module.

  Closes PyCQA/pylint4896

* When processing dataclass attributes, exclude the same type hints from abc.collections
  as from typing.

  Closes PyCQA/pylint4895

* Apply dataclass inference to pydantic&#39;s dataclasses.

  Closes PyCQA/pylint4899
   ```
   
  
  
   ### 2.7.2
   ```
   ============================
Release date: 2021-08-20

* ``BaseContainer`` is now public, and will replace ``_BaseContainer`` completely in astroid 3.0.
* The call cache used by inference functions produced by ``inference_tip``
  can now be cleared via ``clear_inference_tip_cache``.

* ``astroid.const.BUILTINS`` and ``astroid.bases.BUILTINS`` are not used internally anymore
  and will be removed in astroid 3.0. Simply replace this by the string &#39;builtins&#39; for better
  performances and clarity.

* Add inference for dataclass initializer method.

    Closes PyCQA/pylint3201
   ```
   
  
  
   ### 2.7.1
   ```
   ============================
Release date: 2021-08-16

* When processing dataclass attributes, only do typing inference on collection types.
  Support for instantiating other typing types is left for the future, if desired.

  Closes 1129

* Fixed LookupMixIn missing from ``astroid.node_classes``.
   ```
   
  
  
   ### 2.7.0
   ```
   ============================
Release date: 2021-08-15

* Import from ``astroid.node_classes`` and ``astroid.scoped_nodes`` has been deprecated in favor of
  ``astroid.nodes``. Only the imports from ``astroid.nodes`` will work in astroid 3.0.0.

* Add support for arbitrary Enum subclass hierachies

  Closes PyCQA/pylint533
  Closes PyCQA/pylint2224
  Closes PyCQA/pylint2626

* Add inference tips for dataclass attributes, including dataclasses.field calls.
  Also add support for InitVar.

  Closes PyCQA/pylint2600
  Closes PyCQA/pylint2698
  Closes PyCQA/pylint3405
  Closes PyCQA/pylint3794

* Adds a brain that deals with dynamic import of `IsolatedAsyncioTestCase` class of the `unittest` module.

  Closes PyCQA/pylint4060
   ```
   
  
</details>


 

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



102: Update sphinx_rtd_theme to 1.0.0 r=aragilar a=pyup-bot


This PR updates [sphinx_rtd_theme](https://pypi.org/project/sphinx_rtd_theme) from **0.5.2** to **1.0.0**.



*The bot wasn't able to find a changelog for this release. [Got an idea?](https://github.com/pyupio/changelogs/issues/new)*

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/sphinx-rtd-theme
  - Repo: https://github.com/readthedocs/sphinx_rtd_theme
</details>



Co-authored-by: pyup-bot <github-bot@pyup.io>
@bors
Copy link
Contributor

bors bot commented Sep 17, 2021

Build failed (retrying...):

  • aragilar.stringtopy

bors bot added a commit that referenced this pull request Sep 17, 2021
101: Update astroid to 2.8.0 r=aragilar a=pyup-bot


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



<details>
  <summary>Changelog</summary>
  
  
   ### 2.8.0
   ```
   ============================
Release date: 2021-09-14

* Add additional deprecation warnings in preparation for astroid 3.0

  * Require attributes for some node classes with ``__init__`` call.

    * ``name`` (``str``) for ``Name``, ``AssignName``, ``DelName``
    * ``attrname`` (``str``) for ``Attribute``, ``AssignAttr``, ``DelAttr``
    * ``op`` (``str``) for ``AugAssign``, ``BinOp``, ``BoolOp``, ``UnaryOp``
    * ``names`` (``list[tuple[str, str | None]]``) for ``Import``

* Support pyz imports

  Closes PyCQA/pylint3887

* Add ``node_ancestors`` method to ``NodeNG`` for obtaining the ancestors of nodes.

* It&#39;s now possible to infer the value of comparison nodes

  Closes 846

* Fixed bug in inference of dataclass field calls.

    Closes PyCQA/pylint4963
   ```
   
  
  
   ### 2.7.3
   ```
   ============================
Release date: 2021-08-30

* The transforms related to a module are applied only if this module has not been explicitly authorized to be imported
  (i.e is not in AstroidManager.extension_package_whitelist). Solves the following issues if numpy is authorized to be imported
  through the `extension-pkg-allow-list` option.

  Closes PyCQA/pylint3342
  Closes PyCQA/pylint4326

* Fixed bug in attribute inference from inside method calls.

    Closes PyCQA/pylint400

* Fixed bug in inference for superclass instance methods called
  from the class rather than an instance.

    Closes 1008
    Closes PyCQA/pylint4377

* Fixed bug in inference of chained attributes where a subclass
  had an attribute that was an instance of its superclass.

    Closes PyCQA/pylint4220

* Adds a brain for the ctypes module.

  Closes PyCQA/pylint4896

* When processing dataclass attributes, exclude the same type hints from abc.collections
  as from typing.

  Closes PyCQA/pylint4895

* Apply dataclass inference to pydantic&#39;s dataclasses.

  Closes PyCQA/pylint4899
   ```
   
  
  
   ### 2.7.2
   ```
   ============================
Release date: 2021-08-20

* ``BaseContainer`` is now public, and will replace ``_BaseContainer`` completely in astroid 3.0.
* The call cache used by inference functions produced by ``inference_tip``
  can now be cleared via ``clear_inference_tip_cache``.

* ``astroid.const.BUILTINS`` and ``astroid.bases.BUILTINS`` are not used internally anymore
  and will be removed in astroid 3.0. Simply replace this by the string &#39;builtins&#39; for better
  performances and clarity.

* Add inference for dataclass initializer method.

    Closes PyCQA/pylint3201
   ```
   
  
  
   ### 2.7.1
   ```
   ============================
Release date: 2021-08-16

* When processing dataclass attributes, only do typing inference on collection types.
  Support for instantiating other typing types is left for the future, if desired.

  Closes 1129

* Fixed LookupMixIn missing from ``astroid.node_classes``.
   ```
   
  
  
   ### 2.7.0
   ```
   ============================
Release date: 2021-08-15

* Import from ``astroid.node_classes`` and ``astroid.scoped_nodes`` has been deprecated in favor of
  ``astroid.nodes``. Only the imports from ``astroid.nodes`` will work in astroid 3.0.0.

* Add support for arbitrary Enum subclass hierachies

  Closes PyCQA/pylint533
  Closes PyCQA/pylint2224
  Closes PyCQA/pylint2626

* Add inference tips for dataclass attributes, including dataclasses.field calls.
  Also add support for InitVar.

  Closes PyCQA/pylint2600
  Closes PyCQA/pylint2698
  Closes PyCQA/pylint3405
  Closes PyCQA/pylint3794

* Adds a brain that deals with dynamic import of `IsolatedAsyncioTestCase` class of the `unittest` module.

  Closes PyCQA/pylint4060
   ```
   
  
</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 <github-bot@pyup.io>
@bors
Copy link
Contributor

bors bot commented Sep 17, 2021

Build failed:

  • aragilar.stringtopy

@pyup-bot
Copy link
Collaborator Author

pyup-bot commented Oct 7, 2021

Closing this in favor of #106

@pyup-bot pyup-bot closed this Oct 7, 2021
@aragilar aragilar deleted the pyup-update-astroid-2.6.6-to-2.8.0 branch October 7, 2021 06:49
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.

None yet

2 participants