Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Include PEP 695 (Python 3.12) generic type syntax nodes in
get_children()
,allowing checkers to visit them.
Refs Undefined variable when using generic type parameters (PEP695) pylint#9193
Add
__main__
as a possible inferred value for__name__
to improvecontrol flow inference around
if __name__ == "__main__":
guards.Closes Should infer more values for
== __name__
(possibly other dunders) #2071Following a deprecation period, the
names
arg to theImport
constructor andthe
op
arg to theBoolOp
constructor are now required, and thedoc
argsto the
PartialFunction
andProperty
constructors have been removed (callpostinit(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
warningswith Python 3.12.
RecursionError
is now trapped and logged out asUserWarning
during astroid node transformations with instructions about raising the system recursion limit.Closes RecursionError: maximum recursion depth exceeded while linting a large chained method calls pylint#8842
Suppress
SyntaxWarning
for invalid escape sequences on Python 3.12 when parsing modules.Closes Suppress SyntaxWarning from invalid escape sequence pylint#9322