Revisions of python-astroid
buildservice-autocommit
accepted
request 999930
from
Markéta Machová (mcalabkova)
(revision 70)
baserev update by copy to link target
Markéta Machová (mcalabkova)
accepted
request 999550
from
Benjamin Greiner (bnavigator)
(revision 69)
- Update to 2.12.4 * Fixed a crash involving non-standard type comments such as `# type: # any comment`. - Big changelog since 2.9.3, see file Changelog * mostly crash fixes * Python >= 3.7 is required
Dirk Mueller (dirkmueller)
committed
(revision 68)
- update to 2.9.3: * Fixed regression where packages without a ``__init__.py`` file were not recognized or imported correctly. * Fixed regression in ``astroid.scoped_nodes`` where ``_is_metaclass`` was not accessible anymore. * ``NodeNG.frame()`` and ``NodeNG.statement()`` will start raising ``ParentMissingError`` instead of ``AttributeError`` in astroid 3.0. This behaviour can already be triggered by passing ``future=True`` to a ``frame()`` or ``statement()`` call. * Prefer the module loader get_source() method in AstroidBuilder's module_build() when possible to avoid assumptions about source code being available on a filesystem. Otherwise the source cannot be found and application behavior changes when running within an embedded hermetic interpreter environment (pyoxidizer, etc.). * Require Python 3.6.2 to use astroid. * Removed custom ``distutils`` handling for resolving paths to submodules. * Fix ``deque.insert()`` signature in ``collections`` brain. * Fix ``Module`` nodes not having a ``col_offset``, ``end_lineno``, and ``end_col_offset`` attributes. * Fix typing and update explanation for ``Arguments.args`` being ``None``. * Fix crash if a variable named ``type`` is subscripted in a generator expression. * Enable inference of dataclass import from marshmallow_dataclass. This allows the dataclasses brain to recognize dataclasses annotated by marshmallow_dataclass. * Resolve symlinks in the import path Fixes inference error when the import path includes symlinks (e.g. Python installed on macOS via Homebrew).
Matej Cepl (mcepl)
accepted
request 937782
from
Petr Gajdos (pgajdos)
(revision 67)
- version update to 2.9.0 * Add ``end_lineno`` and ``end_col_offset`` attributes to astroid nodes. * Always treat ``__class_getitem__`` as a classmethod. * Add missing ``as_string`` visitor method for ``Unknown`` node. * Fix crash on inference of subclasses created from ``Class().__subclasses__`` * Fix bug with Python 3.7.0 / 3.7.1 and ``typing.NoReturn``.
Dirk Mueller (dirkmueller)
committed
(revision 66)
- update to 2.8.5: * Use more permissive versions for the ``typed-ast`` dependencie (<2.0 instead of <1.5) * Fix crash on inference of ``__len__``. * Added missing ``kind`` (for ``Const``) and ``conversion`` (for ``FormattedValue``) fields to repr. * Fix crash with assignment expressions, nested if expressions and filtering of statements * Fix incorrect filtering of assignment expressions statements
Matej Cepl (mcepl)
accepted
request 927778
from
Benjamin Greiner (bnavigator)
(revision 65)
- Update to 2.8.4 * Fix the ``scope()`` and ``frame()`` methods of ``NamedExpr`` nodes. When these nodes occur in ``Arguments``, ``Keyword`` or ``Comprehension`` nodes these methods now correctly point to the outer-scope of the ``FunctionDef``, ``ClassDef``, or ``Comprehension``. * Fix the ``set_local`` function for ``NamedExpr`` nodes. When these nodes occur in ``Arguments``, ``Keyword``, or ``Comprehension`` nodes these nodes are now correctly added to the locals of the ``FunctionDef``, ``ClassDef``, or ``Comprehension``. - Release 2.8.3? * Add support for wrapt 1.13 * Fixes handling of nested partial functions * Fix regression with the import resolver * Fix crash with invalid dataclass field call - Release 2.8.1 * Adds support of type hints inside numpy's brains. * Enable inference of dataclass import from pydantic.dataclasses. This allows the dataclasses brain to recognize pydantic dataclasses. * Fix regression on ClassDef inference * Fix regression on Compare node inference * Extended attrs brain to support the provisional APIs * Astroid does not trigger it's own deprecation warning anymore. * Improve brain for ``typing.Callable`` and ``typing.Type``. * Fix bug with importing namespace packages with relative imports * The ``is_typing_guard`` and ``is_sys_guard`` functions are deprecated and will be removed in 3.0.0. They are complex meta-inference functions that are better suited for pylint.
Matej Cepl (mcepl)
accepted
request 922892
from
Benjamin Greiner (bnavigator)
(revision 64)
- Update to 2.8.0 * 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 * Add ``node_ancestors`` method to ``NodeNG`` for obtaining the ancestors of nodes. * It's now possible to infer the value of comparison nodes * Fixed bug in inference of dataclass field calls. - Release 2.7.3 * 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. * Fixed bug in attribute inference from inside method calls. * Fixed bug in inference for superclass instance methods called from the class rather than an instance. * Fixed bug in inference of chained attributes where a subclass had an attribute that was an instance of its superclass. * Adds a brain for the ctypes module. * When processing dataclass attributes, exclude the same type
Matej Cepl (mcepl)
accepted
request 913391
from
Benjamin Greiner (bnavigator)
(revision 63)
- Add typing_extensions as requirement for python36
Markéta Machová (mcalabkova)
accepted
request 913116
from
John Paul Adrian Glaubitz (glaubitz)
(revision 62)
- Update to 2.7.1 * 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``. - from version 2.7.0 * 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/pylint#533 Closes PyCQA/pylint#2224 Closes PyCQA/pylint#2626 * Add inference tips for dataclass attributes, including dataclasses.field calls. Also add support for InitVar. Closes PyCQA/pylint#2600 Closes PyCQA/pylint#2698 Closes PyCQA/pylint#3405 Closes PyCQA/pylint#3794 * Adds a brain that deals with dynamic import of `IsolatedAsyncioTestCase` class of the `unittest` module. Closes PyCQA/pylint#4060 - from version 2.6.6 * Added support to infer return type of ``typing.cast()`` * Fix variable lookup's handling of exclusive statements Closes PyCQA/pylint#3711 * Fix variable lookup's handling of function parameters Closes PyCQA/astroid#180 * Fix variable lookup's handling of except clause variables * Fix handling of classes with duplicated bases with the same name Closes PyCQA/astroid#1088 - from version 2.6.5
buildservice-autocommit
accepted
request 891345
from
Matej Cepl (mcepl)
(revision 61)
baserev update by copy to link target
Matej Cepl (mcepl)
accepted
request 891337
from
Benjamin Greiner (bnavigator)
(revision 60)
- Update to 2.5.6 * Fix retro-compatibility issues with old version of pylint Closes PyCQA/pylint#4402 * Fixes the discord link in the project urls of the package. Closes PyCQA/pylint#4393 * The packaging is now done via setuptools exclusively. doc, tests, and Changelog are not packaged anymore - reducing the size of the package greatly. * __pkginfo__ now only contain __version__ (also accessible with astroid.__version__), other meta-information are still accessible with import importlib;metadata.metadata('astroid'). * Added inference tip for typing.Tuple alias * Fix crash when evaluating typing.NamedTuple Closes PyCQA/pylint#4383 * COPYING was removed in favor of COPYING.LESSER and the latter was renamed to LICENSE to make more apparent that the code is licensed under LGPLv2 or later. * Takes into account the fact that subscript inferring for a ClassDef may involve class_getitem method * Reworks the collections and typing brain so that pylint`s acceptance tests are fine. Closes PyCQA/pylint#4206 * Use inference_tip for typing.TypedDict brain. * Fix mro for classes that inherit from typing.Generic * Add inference tip for typing.Generic and typing.Annotated with __class_getitem__ Closes PyCQA/pylint#2822 * Detects import numpy as a valid numpy import. Closes PyCQA/pylint#3974 * Iterate over Keywords when using ClassDef.get_children
buildservice-autocommit
accepted
request 880615
from
Dirk Mueller (dirkmueller)
(revision 59)
baserev update by copy to link target
Dirk Mueller (dirkmueller)
accepted
request 880419
from
Benjamin Greiner (bnavigator)
(revision 58)
- Update to 2.5.1 * The context.path is reverted to a set because otherwise it leads to false positives for non `numpy` functions. * Don't transform dataclass ClassVars * Improve typing.TypedDict inference * Fix the `Duplicates found in MROs` false positive. - Release 2.5.0 * Adds `attr_fset` in the `PropertyModel` class. * Remove support for Python 3.5. * Remove the runtime dependency on six. The six brain remains in astroid. * 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. * Adds a brain for type object so that it is possible to write `type[int]` in annotation. * Add __class_getitem__ method to subprocess.Popen brain under Python 3.9 so that it is seen as subscriptable by pylint. * Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the `numpy` brain. Adds `random` function in the `numpy. random` brain. * Fix deprecated importlib methods * Fix a crash in inference caused by `Uninferable` container elements * 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. * Fix a bug for dunder methods inference of function objects * Fixes a bug in the signature of the ndarray.__or__ method, in the brain_numpy_ndarray.py module. * 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 * Added a brain for sqlalchemy.orm.session * Separate string and bytes classes patching * Prevent recursion error for self referential length calls * Added missing methods to the brain for mechanize, to fix pylint false positives * Added more supported parameters to subprocess.check_output * Fix recursion errors with pandas * Added exception inference for `UnicodeDecodeError` * `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests * Fixed exception-chaining error messages. * Fix failure to infer base class type with multiple inheritance and qualified names * Fix interpretation of six.with_metaclass class definitions. * Reduce memory usage of astroid's module cache. * Remove dependency on `imp`. * Do not crash when encountering starred assignments in enums. * Fix a crash in functools.partial inference when the arguments cannot be determined * Fix a crash caused by a lookup of a monkey-patched method * is_generator correctly considers `Yield` nodes in `AugAssign` nodes This fixes a false positive with the `assignment-from-no-return` pylint check. * 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. - Drop part_rm_dep_imp.patch fixed upstream - Drop unpin-deps.patch unpinned upstream
buildservice-autocommit
accepted
request 853413
from
Matej Cepl (mcepl)
(revision 57)
baserev update by copy to link target
Matej Cepl (mcepl)
accepted
request 853331
from
Benjamin Greiner (bnavigator)
(revision 56)
- Fix python_sitelib usage for possibly multiple python3 flavors gh#openSUSE/python-rpm-macros#66
buildservice-autocommit
accepted
request 816653
from
Matej Cepl (mcepl)
(revision 55)
baserev update by copy to link target
Matej Cepl (mcepl)
committed
(revision 54)
- Add part_rm_dep_imp.patch to replace missing `imp` package (gh#PyCQA/astroid#686).
buildservice-autocommit
accepted
request 814800
from
Steve Kowalik (StevenK)
(revision 53)
baserev update by copy to link target
Steve Kowalik (StevenK)
committed
(revision 52)
- Update to 2.4.2: * `FunctionDef.is_generator` properly handles `yield` nodes in `While` tests * Properly construct the arguments of infered property descriptors
buildservice-autocommit
accepted
request 807183
from
Benjamin Greiner (bnavigator)
(revision 51)
baserev update by copy to link target
Displaying revisions 41 - 60 of 110