-
Add new (optional)
doc_node
attribute tonodes.Module
,nodes.ClassDef
,
andnodes.FunctionDef
. -
Accessing the
doc
attribute ofnodes.Module
,nodes.ClassDef
, and
nodes.FunctionDef
has been deprecated in favour of thedoc_node
attribute.
Note:doc_node
is an (optional)nodes.Const
whereasdoc
was an (optional)str
. -
Passing the
doc
argument to the__init__
ofnodes.Module
,nodes.ClassDef
,
andnodes.FunctionDef
has been deprecated in favour of thepostinit
doc_node
attribute.
Note:doc_node
is an (optional)nodes.Const
whereasdoc
was an (optional)str
. -
Replace custom
cachedproperty
withfunctools.cached_property
and deprecate it
for Python 3.8+.Closes #1410
-
Set
end_lineno
andend_col_offset
attributes toNone
for all nodes
with PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead
to unexpected errors. Overwriting them withNone
will cause a fallback
to the already supported way of PyPy 3.7. -
Add missing
shape
parameter to numpyzeros_like
,ones_like
,
andfull_like
methods.Closes PyCQA/pylint#5871
-
Only pin
wrapt
on the major version.