v2.11.0
-
Add new (optional)
doc_nodeattribute tonodes.Module,nodes.ClassDef,
andnodes.FunctionDef. -
Accessing the
docattribute ofnodes.Module,nodes.ClassDef, and
nodes.FunctionDefhas been deprecated in favour of thedoc_nodeattribute.
Note:doc_nodeis an (optional)nodes.Constwhereasdocwas an (optional)str. -
Passing the
docargument to the__init__ofnodes.Module,nodes.ClassDef,
andnodes.FunctionDefhas been deprecated in favour of thepostinitdoc_nodeattribute.
Note:doc_nodeis an (optional)nodes.Constwhereasdocwas an (optional)str. -
Replace custom
cachedpropertywithfunctools.cached_propertyand deprecate it
for Python 3.8+.Closes #1410
-
Set
end_linenoandend_col_offsetattributes toNonefor all nodes
with PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead
to unexpected errors. Overwriting them withNonewill cause a fallback
to the already supported way of PyPy 3.7. -
Add missing
shapeparameter to numpyzeros_like,ones_like,
andfull_likemethods.Closes pylint-dev/pylint#5871
-
Only pin
wrapton the major version.