Open
Conversation
2d3d5e8 to
35124c3
Compare
35124c3 to
57f55d4
Compare
57f55d4 to
ff37a2b
Compare
ff37a2b to
be068c0
Compare
be068c0 to
60769f4
Compare
60769f4 to
9479f7c
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.7.3->==2.11.3Release Notes
PyCQA/astroid
v2.11.3Compare Source
=============================
Release date: 2022-04-19
Fixed an error in the Qt brain when building
instance_attrs.Closes PyCQA/pylint#6221
Fixed a crash in the
gibrain.Closes PyCQA/pylint#6371
v2.11.2Compare Source
=============================
Release date: 2022-03-26
Avoided adding the name of a parent namedtuple to its child's locals.
Refs PyCQA/pylint#5982
v2.11.1Compare Source
=============================
Release date: 2022-03-22
Promoted
getattr()fromastroid.scoped_nodes.FunctionDefto its parentastroid.scoped_nodes.Lambda.Fixed crash on direct inference via
nodes.FunctionDef._infer.Closes #817
v2.11.0Compare Source
=============================
Release date: 2022-03-12
Add new (optional)
doc_nodeattribute tonodes.Module,nodes.ClassDef,and
nodes.FunctionDef.Accessing the
docattribute ofnodes.Module,nodes.ClassDef, andnodes.FunctionDefhas been deprecated in favour of thedoc_nodeattribute.Note:
doc_nodeis an (optional)nodes.Constwhereasdocwas an (optional)str.Passing the
docargument to the__init__ofnodes.Module,nodes.ClassDef,and
nodes.FunctionDefhas been deprecated in favour of thepostinitdoc_nodeattribute.Note:
doc_nodeis an (optional)nodes.Constwhereasdocwas an (optional)str.Replace custom
cachedpropertywithfunctools.cached_propertyand deprecate itfor Python 3.8+.
Closes #1410
Set
end_linenoandend_col_offsetattributes toNonefor all nodeswith PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead
to unexpected errors. Overwriting them with
Nonewill cause a fallbackto the already supported way of PyPy 3.7.
Add missing
shapeparameter to numpyzeros_like,ones_like,and
full_likemethods.Closes PyCQA/pylint#5871
Only pin
wrapton the major version.v2.10.0Compare Source
=============================
Release date: 2022-02-27
Fixed inference of
selfin binary operations in whichselfis part of a list or tuple.
Closes PyCQA/pylint#4826
Fixed builtin inference on
propertycalls not calling thepostinitof the new node, whichresulted in instance arguments missing on these nodes.
Fixed a crash on
Super.getattrwhen the attribute was previously uninferable due to a cachelimit size. This limit can be hit when the inheritance pattern of a class (and therefore of the
__init__attribute) is very large.Closes PyCQA/pylint#5679
Inlcude names of keyword-only arguments in
astroid.scoped_nodes.Lambda.argnames.Closes PyCQA/pylint#5771
Fixed a crash inferring on a
NewTypenamed with an f-string.Closes PyCQA/pylint#5770
Add support for attrs v21.3.0 which
added a new
attrsmodule alongside the existingattr.Closes #1330
Use the
end_linenoattribute for theNodeNG.tolinenopropertywhen it is available.
Closes #1350
Add
is_dataclassattribute toClassDefnodes.Use
sysconfiginstead ofdistutilsto determine the location ofpython stdlib files and packages.
Related pull requests: #1322, #1323, #1324
Closes #1282
Ref #1103
Fixed crash with recursion error for inference of class attributes that referenced
the class itself.
Closes PyCQA/pylint#5408
Fixed crash when trying to infer
items()on the__dict__attribute of an imported module.
Closes #1085
Add optional
NodeNG.positionattribute.Used for block nodes to highlight position of keyword(s) and name
in cases where the AST doesn't provide good enough positional information.
E.g.
nodes.ClassDef,nodes.FunctionDef.Fix
ClassDef.fromlineno. For Python < 3.8 thelinenoattribute includes decorators.fromlinenoshould return the line of theclassstatement itself.Performance improvements. Only run expensive decorator functions when
non-default Deprecation warnings are enabled, eg. during a Pytest run.
Closes #1383
v2.9.3Compare Source
============================
Release date: 2022-01-09
Fixed regression where packages without a
__init__.pyfile werenot recognized or imported correctly.
Closes #1327
v2.9.2Compare Source
============================
Release date: 2022-01-04
astroid.scoped_nodeswhere_is_metaclasswas not accessible anymore.
Closes #1325
v2.9.1Compare Source
============================
Release date: 2021-12-31
NodeNG.frame()andNodeNG.statement()will start raisingParentMissingErrorinstead of
AttributeErrorin astroid 3.0. This behaviour can already be triggeredby passing
future=Trueto aframe()orstatement()call.Prefer the module loader get_source() method in AstroidBuilder's
module_build() when possible to avoid assumptions about source
code being available on a filesystem. Otherwise the source cannot
be found and application behavior changes when running within an
embedded hermetic interpreter environment (pyoxidizer, etc.).
Require Python 3.6.2 to use astroid.
Removed custom
distutilshandling for resolving paths to submodules.Ref #1321
Restore custom
distutilshandling for resolving paths to submodules.Closes PyCQA/pylint#5645
Fix
deque.insert()signature incollectionsbrain.Closes #1260
Fix
Modulenodes not having acol_offset,end_lineno, andend_col_offsetattributes.
Fix typing and update explanation for
Arguments.argsbeingNone.Fix crash if a variable named
typeis accessed with an index operator ([])in a generator expression.
Closes PyCQA/pylint#5461
Enable inference of dataclass import from marshmallow_dataclass.
This allows the dataclasses brain to recognize dataclasses annotated by marshmallow_dataclass.
Resolve symlinks in the import path
Fixes inference error when the import path includes symlinks (e.g. Python
installed on macOS via Homebrew).
Closes #823
Closes PyCQA/pylint#3499
Closes PyCQA/pylint#4302
Closes PyCQA/pylint#4798
Closes PyCQA/pylint#5081
v2.9.0Compare Source
============================
Release date: 2021-11-21
Add
end_linenoandend_col_offsetattributes to astroid nodes.Always treat
__class_getitem__as a classmethod.Add missing
as_stringvisitor method forUnknownnode.Closes #1264
v2.8.6Compare Source
============================
Release date: 2021-11-21
Fix crash on inference of subclasses created from
Class().__subclasses__Closes PyCQA/pylint#4982
Fix bug with Python 3.7.0 / 3.7.1 and
typing.NoReturn.Closes #1239
v2.8.5Compare Source
============================
Release date: 2021-11-12
Use more permissive versions for the
typed-astdependency (<2.0 instead of <1.5)Closes #1237
Fix crash on inference of
__len__.Closes PyCQA/pylint#5244
Added missing
kind(forConst) andconversion(forFormattedValue) fields to repr.Fix crash with assignment expressions, nested if expressions and filtering of statements
Closes PyCQA/pylint#5178
Fix incorrect filtering of assignment expressions statements
v2.8.4Compare Source
============================
Release date: 2021-10-25
Fix the
scope()andframe()methods ofNamedExprnodes.When these nodes occur in
Arguments,KeywordorComprehensionnodes thesemethods now correctly point to the outer-scope of the
FunctionDef,ClassDef, orComprehension.Fix the
set_localfunction forNamedExprnodes.When these nodes occur in
Arguments,Keyword, orComprehensionnodes thesenodes are now correctly added to the locals of the
FunctionDef,ClassDef, orComprehension.v2.8.3Compare Source
============================
Release date: 2021-10-17
Add support for wrapt 1.13
Fixes handling of nested partial functions
Closes PyCQA/pylint#2462
Closes #1208
Fix regression with the import resolver
Closes PyCQA/pylint#5131
Fix crash with invalid dataclass field call
Closes PyCQA/pylint#5153
v2.8.2Compare Source
============================
Release date: 2021-10-07
Same content than 2.8.2-dev0 / 2.8.1, released in order to fix a
mistake when creating the tag.
v2.8.1Compare Source
============================
Release date: 2021-10-06
Adds support of type hints inside numpy's brains.
Closes PyCQA/pylint#4326
Enable inference of dataclass import from pydantic.dataclasses.
This allows the dataclasses brain to recognize pydantic dataclasses.
Closes PyCQA/pylint#4899
Fix regression on ClassDef inference
Closes PyCQA/pylint#5030
Closes PyCQA/pylint#5036
Fix regression on Compare node inference
Closes PyCQA/pylint#5048
Extended attrs brain to support the provisional APIs
Astroid does not trigger it's own deprecation warning anymore.
Improve brain for
typing.Callableandtyping.Type.Fix bug with importing namespace packages with relative imports
Closes PyCQA/pylint#5059
The
is_typing_guardandis_sys_guardfunctions are deprecated and willbe removed in 3.0.0. They are complex meta-inference functions that are better
suited for pylint. Import them from
pylint.checkers.utilsinstead(requires pylint
2.12).Suppress the conditional between applied brains and dynamic import authorized
modules. (Revert the "The transforms related to a module are applied only if this
module has not been explicitly authorized to be imported" of version 2.7.3)
Adds a brain to infer the
numpy.ma.masked_wherefunction.Closes PyCQA/pylint#3342
v2.8.0Compare Source
============================
Release date: 2021-09-14
Add additional deprecation warnings in preparation for astroid 3.0
Require attributes for some node classes with
__init__call.name(str) forName,AssignName,DelNameattrname(str) forAttribute,AssignAttr,DelAttrop(str) forAugAssign,BinOp,BoolOp,UnaryOpnames(list[tuple[str, str | None]]) forImportSupport pyz imports
Closes PyCQA/pylint#3887
Add
node_ancestorsmethod toNodeNGfor obtaining the ancestors of nodes.It's now possible to infer the value of comparison nodes
Closes #846
Fixed bug in inference of dataclass field calls.
Closes PyCQA/pylint#4963
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 WhiteSource Renovate. View repository job log here.