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
namesarg to theImportconstructor andthe
oparg to theBoolOpconstructor are now required, and thedocargsto the
PartialFunctionandPropertyconstructors have been removed (callpostinit(doc_node=...)instead.)Following a deprecation announced in astroid 1.5.0, the alias
AstroidBuildingExceptionis removed in favor ofAstroidBuildingError.Include modname in AST warnings. Useful for
invalid escape sequencewarningswith Python 3.12.
RecursionErroris now trapped and logged out asUserWarningduring 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
SyntaxWarningfor invalid escape sequences on Python 3.12 when parsing modules.Closes Suppress SyntaxWarning from invalid escape sequence pylint#9322