- Include PEP 695 (Python 3.12) generic type syntax nodes in
get_children()
,
allowing checkers to visit them.
Refs pylint-dev/pylint#9193 - Add
__main__
as a possible inferred value for__name__
to improve
control flow inference aroundif __name__ == "__main__":
guards.
Closes #2071 - Following a deprecation period, the
names
arg to theImport
constructor and
theop
arg to theBoolOp
constructor are now required, and thedoc
args
to thePartialFunction
andProperty
constructors have been removed (call
postinit(doc_node=...)
instead.) - Following a deprecation announced in astroid 1.5.0, the alias
AstroidBuildingException
is removed in favor ofAstroidBuildingError
. - Include modname in AST warnings. Useful for
invalid escape sequence
warnings
with Python 3.12. RecursionError
is now trapped and logged out asUserWarning
during astroid node transformations with instructions about raising the system recursion limit.
Closes pylint-dev/pylint#8842- Suppress
SyntaxWarning
for invalid escape sequences on Python 3.12 when parsing modules.
Closes pylint-dev/pylint#9322