-
Notifications
You must be signed in to change notification settings - Fork 66
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
chore(deps): update dependency astroid to v3 - autoclosed #2001
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
26 times, most recently
from
October 3, 2023 15:02
885f16f
to
72f7188
Compare
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
4 times, most recently
from
October 5, 2023 01:19
1fec8b6
to
93f5c3f
Compare
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
3 times, most recently
from
October 16, 2023 03:47
ab7ffa2
to
844c1f2
Compare
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
8 times, most recently
from
October 18, 2023 01:24
c49c4f4
to
74f391d
Compare
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
from
October 29, 2023 19:07
74f391d
to
04da04b
Compare
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
from
October 29, 2023 20:57
04da04b
to
b2c0f08
Compare
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
from
October 29, 2023 20:59
b2c0f08
to
0600adb
Compare
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
from
October 29, 2023 21:16
0600adb
to
1bc41e7
Compare
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
from
October 29, 2023 21:21
1bc41e7
to
8f5158c
Compare
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
from
October 29, 2023 21:22
8f5158c
to
4915c01
Compare
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
bot
force-pushed
the
renovate/astroid-3.x
branch
from
October 30, 2023 04:45
4915c01
to
015d5fd
Compare
renovate
bot
changed the title
chore(deps): update dependency astroid to v3
chore(deps): update dependency astroid to v3 - autoclosed
Oct 30, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.
This PR contains the following updates:
==2.15.8
->==3.0.1
Release Notes
pylint-dev/astroid (astroid)
v3.0.1
Compare 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.0
Compare Source
=============================
Release date: 2023-09-25
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
None
for the context argument. (Lintingastroid
itself 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_classes
and
astroid.scoped_nodes
modules have been removed in favor ofastroid.nodes.node_classes
and
astroid.nodes.scoped_nodes
.Closes #1072
Following a deprecation period starting in astroid 2.12.0, the
astroid.mixins
modulehas been removed in favor of
astroid.nodes._base_nodes
(private).Refs #1633
Return all existing arguments when calling
Arguments.arguments()
. This also meansfind_argname
will nowuse the whole list of arguments for its search.
Closes #2213
Exclude class attributes from the
__members__
container of anEnum
class when they arenodes.AnnAssign
nodes with no assigned value.Refs pylint-dev/pylint#7402
Remove
@cached
and@cachedproperty
decorator (just use@cached_property
from the stdlib).Closes #1780
Refs #2140
Remove the
inference
module. Node inference methods are now in the moduledefining the node, rather than being associated to the node afterward.
Closes #679
Move
LookupMixIn
toastroid.nodes._base_nodes
and make it private.Remove the shims for
OperationError
,BinaryOperationError
, andUnaryOperationError
in
exceptions
. They were moved toutil
in astroid 1.5.0.Move
safe_infer()
fromhelpers
toutil
. This avoids some circular imports.Reduce file system access in
ast_from_file()
.Reduce time to
import astroid
by 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
InferenceContext
call chains, thereby addressing performanceproblems when linting
sqlalchemy
.Closes pylint-dev/pylint#8150
nodes.FunctionDef
no 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_result
now shares the same interface across all implementations. Namely:This is a breaking change for
nodes.FunctionDef
where previouslycaller
had a default ofNone
. PassingNone
again 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_offset
andparent
required arguments for
nodes.NodeNG
and 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
ast
module.The following nodes were changed or updated:
nodes.AnnAssign
nodes.Arguments
nodes.Assign
nodes.AssignAttr
nodes.AssignName
nodes.Attribute
nodes.AugAssign
nodes.Await
nodes.BaseContainer
nodes.BinOp
nodes.Call
nodes.ClassDef
nodes.Compare
nodes.Comprehension
nodes.Decorators
nodes.Delete
nodes.DelAttr
nodes.DelName
nodes.Dict
nodes.DictComp
nodes.ExceptHandler
nodes.Expr
nodes.For
nodes.FunctionDef
nodes.GeneratorExp
nodes.If
nodes.IfExp
nodes.Keyword
nodes.Lambda
nodes.ListComp
nodes.Module
nodes.Name
nodes.NodeNG
nodes.Raise
nodes.Return
nodes.SetComp
nodes.Slice
nodes.Starred
objects.Super
, we also added thecall
parameter to its__init__
method.nodes.Subscript
nodes.UnaryOp
nodes.While
nodes.Yield
These 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_orelse
has 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_descriptor
andproxy_alias
utility functions.CallSite._unpack_args
andCallSite._unpack_keywords
now usesafe_infer()
forbetter inference and fewer false positives.
Closes pylint-dev/pylint#8544
Add
attr.Factory
to 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_METHOD
astroid.bases.BUILTINS
astroid.const.BUILTINS
astroid.const.PY38_PLUS
astroid.const.Load
astroid.const.Store
astroid.const.Del
Refs #2141
frame()
raisesParentMissingError
andstatement()
raisesStatementMissing
formissing parents regardless of the value of the
future
argument (which gave this behavioralready).
The
future
argument to each method is deprecated and will be removed in astroid 4.0.Refs #1217
Remove deprecated
Ellipsis
,ExtSlice
,Index
nodes.Refs #2152
Remove deprecated
is_sys_guard
andis_typing_guard
methods.Refs #2153
Remove deprecated
doc
attribute forModule
,ClassDef
, andFunctionDef
.Use the
doc_node
attribute instead.Refs #2154
Add new
nodes.Try
to better match Python AST. Replaces theTryExcept
and
TryFinally
nodes 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-member
andinvalid-name
when 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 has been generated by Mend Renovate. View repository job log here.