Skip to content

v2.11.0

Compare
Choose a tag to compare
@Pierre-Sassoulas Pierre-Sassoulas released this 12 Mar 12:13
· 1189 commits to main since this release
  • Add new (optional) doc_node attribute to nodes.Module, nodes.ClassDef,
    and nodes.FunctionDef.

  • Accessing the doc attribute of nodes.Module, nodes.ClassDef, and
    nodes.FunctionDef has been deprecated in favour of the doc_node attribute.
    Note: doc_node is an (optional) nodes.Const whereas doc was an (optional) str.

  • Passing the doc argument to the __init__ of nodes.Module, nodes.ClassDef,
    and nodes.FunctionDef has been deprecated in favour of the postinit doc_node attribute.
    Note: doc_node is an (optional) nodes.Const whereas doc was an (optional) str.

  • Replace custom cachedproperty with functools.cached_property and deprecate it
    for Python 3.8+.

    Closes #1410

  • Set end_lineno and end_col_offset attributes to None for all nodes
    with PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead
    to unexpected errors. Overwriting them with None will cause a fallback
    to the already supported way of PyPy 3.7.

  • Add missing shape parameter to numpy zeros_like, ones_like,
    and full_like methods.

    Closes pylint-dev/pylint#5871

  • Only pin wrapt on the major version.