astroid 2.3.2
-
All type comments have as parent the corresponding
astroid
nodeUntil now they had as parent the builtin
ast
node which meant
we were operating with primitive objects instead of our own.Close pylint-dev/pylint#3174
-
Pass an inference context to
metaclass()
when inferring an object typeThis should prevent a bunch of recursion errors happening in pylint.
Also refactor the inference ofIfExp
nodes to use separate contexts
for each potential branch.Close pylint-dev/pylint#3152
Close pylint-dev/pylint#3159