forked from pool/python-astroid
- update to 3.1.0:
* Include PEP 695 (Python 3.12) generic type syntax nodes in
``get_children()``, allowing checkers to visit them.
* Add ``__main__`` as a possible inferred value for
``__name__`` to improve control flow inference around
``if __name__ == "__main__":`` guards.
* Following a deprecation period, the ``names`` arg to the
``Import`` constructor and the ``op`` arg to the ``BoolOp``
constructor are now required, and the ``doc`` args
to the ``PartialFunction`` and ``Property`` constructors
have been removed (call ``postinit(doc_node=...)`` instead.)
* Following a deprecation announced in astroid 1.5.0, the alias
``AstroidBuildingException`` is removed in favor of
``AstroidBuildingError``.
* Include modname in AST warnings. Useful for ``invalid escape
sequence`` warnings with Python 3.12.
* ``RecursionError`` is now trapped and logged out as
``UserWarning`` during astroid node transformations with
instructions about raising the system recursion limit.
* Suppress ``SyntaxWarning`` for invalid escape sequences on
Python 3.12 when parsing modules.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=99
This commit is contained in:
@@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 22 19:54:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 3.1.0:
|
||||
* Include PEP 695 (Python 3.12) generic type syntax nodes in
|
||||
``get_children()``, allowing checkers to visit them.
|
||||
* Add ``__main__`` as a possible inferred value for
|
||||
``__name__`` to improve control flow inference around
|
||||
``if __name__ == "__main__":`` guards.
|
||||
* Following a deprecation period, the ``names`` arg to the
|
||||
``Import`` constructor and the ``op`` arg to the ``BoolOp``
|
||||
constructor are now required, and the ``doc`` args
|
||||
to the ``PartialFunction`` and ``Property`` constructors
|
||||
have been removed (call ``postinit(doc_node=...)`` instead.)
|
||||
* Following a deprecation announced in astroid 1.5.0, the alias
|
||||
``AstroidBuildingException`` is removed in favor of
|
||||
``AstroidBuildingError``.
|
||||
* Include modname in AST warnings. Useful for ``invalid escape
|
||||
sequence`` warnings with Python 3.12.
|
||||
* ``RecursionError`` is now trapped and logged out as
|
||||
``UserWarning`` during astroid node transformations with
|
||||
instructions about raising the system recursion limit.
|
||||
* Suppress ``SyntaxWarning`` for invalid escape sequences on
|
||||
Python 3.12 when parsing modules.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 27 09:42:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user