github pylint-dev/astroid astroid-2.5
astroid 2.5

latest releases: v3.3.5, v3.3.4, v3.3.3...
3 years ago
  • Adds attr_fset in the PropertyModel class.

    Fixes PyCQA/pylint#3480

  • Remove support for Python 3.5.

  • Remove the runtime dependency on six. The six brain remains in
    astroid.

    Fixes #863

  • 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/pylint#4001

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

    Fixes PyCQA/pylint#4034

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

    Fixes PyCQA/pylint#3856

  • 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/pylint#3640

  • 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/pylint#3387

  • Added a brain for sqlalchemy.orm.session

  • Separate string and bytes classes patching

    Fixes PyCQA/pylint#3599

  • 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/pylint#2843
    Fixes PyCQA/pylint#2811

  • Added exception inference for UnicodeDecodeError

    Close PyCQA/pylint#3639

  • FunctionDef.is_generator properly handles yield nodes in If tests

    Close PyCQA/pylint#3583

  • 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/pylint#3776

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

    Close PyCQA/pylint#3686

  • is_generator correctly considers Yield nodes in AugAssign nodes

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

    Close PyCQA/pylint#3904

  • 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 #851

Don't miss a new astroid release

NewReleases is sending notifications on new releases.