-
Notifications
You must be signed in to change notification settings - Fork 1
fix(deps): update dependency astroid to v3 #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: poetry.lock |
6368ee3 to
ca2910d
Compare
ca2910d to
c5e7d74
Compare
c5e7d74 to
43de025
Compare
43de025 to
0a847fb
Compare
0a847fb to
115273f
Compare
|
115273f to
d9c93b9
Compare
d9c93b9 to
72331c6
Compare
72331c6 to
8810e2e
Compare
9da9b57 to
cb655a9
Compare
ec93276 to
d2f11fe
Compare
d2f11fe to
1497d3b
Compare
This PR contains the following updates:
2.15.8->3.3.5Release Notes
pylint-dev/astroid (astroid)
v3.3.5Compare Source
============================
Release date: 2024-10-04
Control setting local nodes outside of the supposed local's constructor.
Closes #1490
Fix Python 3.13 compatibility re:
collections.abcCloses pylint-dev/pylint#10000
v3.3.4Compare Source
============================
Release date: 2024-09-23
Fix regression with f-string inference.
Closes pylint-dev/pylint#9947
Fix bug with
manager.clear_cache()not fully clearing cache.Refs https://github.com/pylint-dev/pylint/pull/9932#issuecomment-2364985551
Fix a crash from inferring empty format specs.
Closes pylint-dev/pylint#9945
v3.3.3Compare Source
============================
Release date: 2024-09-20
Fix inference regression with property setters.
Closes pylint-dev/pylint#9811
Add annotation-only instance attributes to attrs classes to fix
no-memberfalse positives.Closes #2514
v3.3.2Compare Source
============================
Release date: 2024-08-11
Restore support for soft-deprecated members of the
typingmodule with python 3.13.Refs pylint-dev/pylint#9852
v3.3.1Compare Source
============================
Release date: 2024-08-06
Fix a crash introduced in 3.3.0 involving invalid format strings.
Closes #2492
v3.3.0Compare Source
============================
Release date: 2024-08-04
Add support for Python 3.13.
Remove support for Python 3.8 (and constants
PY38,PY39_PLUS, andPYPY_7_3_11_PLUS).Refs #2443
Add the
__annotations__attribute to theClassDefobject model.Closes pylint-dev/pylint#7126
Implement inference for JoinedStr and FormattedValue
Add support for
ssl.OP_LEGACY_SERVER_CONNECT(new in Python 3.12).Closes pylint-dev/pylint#9849
v3.2.4Compare Source
============================
Release date: 2024-07-20
Avoid reporting unary/binary op type errors when inference is ambiguous.
Closes #2467
v3.2.3Compare Source
============================
Release date: 2024-07-11
AssertionErrorwhen inferring a property consisting of a partial function.Closes pylint-dev/pylint#9214
v3.2.2Compare Source
============================
Release date: 2024-05-20
Improve inference for generic classes using the PEP 695 syntax (Python 3.12).
Closes pylint-dev/pylint#9406
v3.2.1Compare Source
============================
Release date: 2024-05-16
Fix
RecursionErrorininfer_call_result()for certain__call__methods.Closes pylint-dev/pylint#9139
Add
AstroidManager.prefer_stubsattribute to control the astroid 3.2.0 feature that prefers stubs.Refs pylint-dev/pylint#9626
Refs pylint-dev/pylint#9623
v3.2.0Compare Source
============================
Release date: 2024-05-07
.pyistub files are now preferred over.pyfiles when resolving imports, (except for numpy).Closes pylint-dev/#9185
igetattr()returns the last same-named function in a class (instead ofthe first). This avoids false positives in pylint with
@overload.Closes #1015
Refs pylint-dev/pylint#4696
Adds
module_denylisttoAstroidManagerfor modules to be skipped during ASTgeneration. Modules in this list will cause an
AstroidImportErrorto be raisedwhen an AST for them is requested.
Refs pylint-dev/pylint#9442
Make
astroid.interpreter._import.util.is_namespaceonly consider modulesusing a loader set to
NamespaceLoaderorNoneas namespaces.This fixes a problem that
six.movesbrain was not effective ifsix.moveswas already imported.
Closes #1107
v3.1.0Compare Source
============================
Release date: 2024-02-23
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 improvecontrol flow inference around
if __name__ == "__main__":guards.Closes #2071
Following 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 pylint-dev/pylint#8842
Suppress
SyntaxWarningfor invalid escape sequences on Python 3.12 when parsing modules.Closes pylint-dev/pylint#9322
v3.0.3Compare Source
============================
Release date: 2024-02-04
Fix type of
UnicodeDecodeError.objectinferred asstrinstead ofbytes.Closes pylint-dev/pylint#9342
Fix
no-memberfalse positives forargsandkwargsonParamSpecunder Python 3.12.Closes pylint-dev/pylint#9401
v3.0.2Compare Source
============================
Release date: 2023-12-12
Avoid duplicate inference results for some uses of
typing.Xconstructs likeTuple[Optional[int], ...]. This was causing pylint to occasionally omitmessages like
deprecated-typing-alias.Closes pylint-dev/pylint#9220
v3.0.1Compare Source
============================
Release date: 2023-10-15
Fix crashes linting code using PEP 695 (Python 3.12) generic type syntax.
Closes pylint-dev/pylint#9098
v3.0.0Compare Source
=============================
Release date: 2023-09-26
Add support for Python 3.12, including PEP 695 type parameter syntax.
Closes #2201
Remove support for Python 3.7.
Refs #2137
Use the global inference cache when inferring, even without an explicit
InferenceContext. This is a significant performance improvement given howoften methods default to
Nonefor the context argument. (Lintingastroiditself now takes ~5% less time on Python 3.12; other projects requiring more
complex inference calculations will see greater speedups.)
Refs #529
Following a deprecation period starting in astroid 2.7.0, the
astroid.node_classesand
astroid.scoped_nodesmodules have been removed in favor ofastroid.nodes.node_classesand
astroid.nodes.scoped_nodes.Closes #1072
Following a deprecation period starting in astroid 2.12.0, the
astroid.mixinsmodulehas been removed in favor of
astroid.nodes._base_nodes(private).Refs #1633
Return all existing arguments when calling
Arguments.arguments(). This also meansfind_argnamewill nowuse the whole list of arguments for its search.
Closes #2213
Exclude class attributes from the
__members__container of anEnumclass when they arenodes.AnnAssignnodes with no assigned value.Refs pylint-dev/pylint#7402
Remove
@cachedand@cachedpropertydecorator (just use@cached_propertyfrom the stdlib).Closes #1780
Refs #2140
Remove the
inferencemodule. Node inference methods are now in the moduledefining the node, rather than being associated to the node afterward.
Closes #679
Move
LookupMixIntoastroid.nodes._base_nodesand make it private.Remove the shims for
OperationError,BinaryOperationError, andUnaryOperationErrorin
exceptions. They were moved toutilin astroid 1.5.0.Move
safe_infer()fromhelperstoutil. This avoids some circular imports.Reduce file system access in
ast_from_file().Reduce time to
import astroidby delayingastroid_bootstrapping()untilthe first instantiation of
AstroidBuilder.Closes #2161
Make
igetattr()idempotent. This addresses some reports of varying resultswhen running pylint with
--jobs.Closes pylint-dev/pylint#4356
Refs #7
Fix incorrect cache keys for inference results, thereby correctly inferring types
for calls instantiating types dynamically.
Closes #1828
Closes pylint-dev/pylint#7464
Closes pylint-dev/pylint#8074
Fix interrupted
InferenceContextcall chains, thereby addressing performanceproblems when linting
sqlalchemy.Closes pylint-dev/pylint#8150
nodes.FunctionDefno longer inherits fromnodes.Lambda.This is a breaking change but considered a bug fix as the nodes did not share the same
API and were not interchangeable.
We have tried to minimize the amount of breaking changes caused by this change
but some are unavoidable.
infer_call_resultnow shares the same interface across all implementations. Namely:This is a breaking change for
nodes.FunctionDefwhere previouslycallerhad a default ofNone. PassingNoneagain will not create a behaviour change.The breaking change allows us to better type and re-use the method within
astroid.Improved signature of the
__init__and__postinit__methods of most nodes.This includes making
lineno,col_offset,end_lineno,end_col_offsetandparentrequired arguments for
nodes.NodeNGand its subclasses.For most other nodes, arguments of their
__postinit__methods have been made required to betterrepresent how they would normally be constructed by the standard library
astmodule.The following nodes were changed or updated:
nodes.AnnAssignnodes.Argumentsnodes.Assignnodes.AssignAttrnodes.AssignNamenodes.Attributenodes.AugAssignnodes.Awaitnodes.BaseContainernodes.BinOpnodes.Callnodes.ClassDefnodes.Comparenodes.Comprehensionnodes.Decoratorsnodes.Deletenodes.DelAttrnodes.DelNamenodes.Dictnodes.DictCompnodes.ExceptHandlernodes.Exprnodes.Fornodes.FunctionDefnodes.GeneratorExpnodes.Ifnodes.IfExpnodes.Keywordnodes.Lambdanodes.ListCompnodes.Modulenodes.Namenodes.NodeNGnodes.Raisenodes.Returnnodes.SetCompnodes.Slicenodes.Starredobjects.Super, we also added thecallparameter to its__init__method.nodes.Subscriptnodes.UnaryOpnodes.Whilenodes.YieldThese changes involve breaking changes to their API but should be considered bug fixes. We
now make arguments required when they are instead of always providing defaults.
nodes.If.self.is_orelsehas been removed as it was never set correctly and thereforeprovided a false value.
Remove dependency on
wrapt.Remove dependency on
lazy_object_proxy. This includes the removalof the associated
lazy_import,lazy_descriptorandproxy_aliasutility functions.CallSite._unpack_argsandCallSite._unpack_keywordsnow usesafe_infer()forbetter inference and fewer false positives.
Closes pylint-dev/pylint#8544
Add
attr.Factoryto the recognized class attributes for classes decorated withattrs.Closes pylint-dev/pylint#4341
infer_property()now observes the same property-specific workaround asinfer_functiondef.Refs #1490
Remove unused and / or deprecated constants:
astroid.bases.BOOL_SPECIAL_METHODastroid.bases.BUILTINSastroid.const.BUILTINSastroid.const.PY38_PLUSastroid.const.Loadastroid.const.Storeastroid.const.DelRefs #2141
frame()raisesParentMissingErrorandstatement()raisesStatementMissingformissing parents regardless of the value of the
futureargument (which gave this behavioralready).
The
futureargument to each method is deprecated and will be removed in astroid 4.0.Refs #1217
Remove deprecated
Ellipsis,ExtSlice,Indexnodes.Refs #2152
Remove deprecated
is_sys_guardandis_typing_guardmethods.Refs #2153
Remove deprecated
docattribute forModule,ClassDef, andFunctionDef.Use the
doc_nodeattribute instead.Refs #2154
Add new
nodes.Tryto better match Python AST. Replaces theTryExceptand
TryFinallynodes which have been removed.Publicize
NodeNG.repr_name()to facilitate finding a node's nice name.Refs pylint-dev/pylint#8598
Fix false positives for
no-memberandinvalid-namewhen using the_name_,_value_and_ignore_sunders in Enums.Closes pylint-dev/pylint#9015
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.