Skip to content

Update dependency astroid to v2.11.3#412

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/astroid-2.x
Open

Update dependency astroid to v2.11.3#412
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/astroid-2.x

Conversation

@renovate
Copy link

@renovate renovate bot commented Sep 14, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astroid ==2.7.3 -> ==2.11.3 age adoption passing confidence

Release Notes

PyCQA/astroid

v2.11.3

Compare Source

=============================
Release date: 2022-04-19

v2.11.2

Compare Source

=============================
Release date: 2022-03-26

v2.11.1

Compare Source

=============================
Release date: 2022-03-22

  • Promoted getattr() from astroid.scoped_nodes.FunctionDef to its parent
    astroid.scoped_nodes.Lambda.

  • Fixed crash on direct inference via nodes.FunctionDef._infer.

    Closes #​817

v2.11.0

Compare Source

=============================
Release date: 2022-03-12

  • Add new (optional) doc_node attribute to nodes.Module, nodes.ClassDef,
    and nodes.FunctionDef.

  • Accessing the doc attribute of nodes.Module, nodes.ClassDef, and
    nodes.FunctionDef has been deprecated in favour of the doc_node attribute.
    Note: doc_node is an (optional) nodes.Const whereas doc was an (optional) str.

  • Passing the doc argument to the __init__ of nodes.Module, nodes.ClassDef,
    and nodes.FunctionDef has been deprecated in favour of the postinit doc_node attribute.
    Note: doc_node is an (optional) nodes.Const whereas doc was an (optional) str.

  • Replace custom cachedproperty with functools.cached_property and deprecate it
    for Python 3.8+.

    Closes #​1410

  • Set end_lineno and end_col_offset attributes to None for all nodes
    with PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead
    to unexpected errors. Overwriting them with None will cause a fallback
    to the already supported way of PyPy 3.7.

  • Add missing shape parameter to numpy zeros_like, ones_like,
    and full_like methods.

    Closes PyCQA/pylint#​5871

  • Only pin wrapt on the major version.

v2.10.0

Compare Source

=============================
Release date: 2022-02-27

  • Fixed inference of self in binary operations in which self
    is part of a list or tuple.

    Closes PyCQA/pylint#​4826

  • Fixed builtin inference on property calls not calling the postinit of the new node, which
    resulted in instance arguments missing on these nodes.

  • Fixed a crash on Super.getattr when the attribute was previously uninferable due to a cache
    limit 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 NewType named with an f-string.

    Closes PyCQA/pylint#​5770

  • Add support for attrs v21.3.0 which
    added a new attrs module alongside the existing attr.

    Closes #​1330

  • Use the end_lineno attribute for the NodeNG.tolineno property
    when it is available.

    Closes #​1350

  • Add is_dataclass attribute to ClassDef nodes.

  • Use sysconfig instead of distutils to determine the location of
    python 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.position attribute.
    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 the lineno attribute includes decorators.
    fromlineno should return the line of the class statement itself.

  • Performance improvements. Only run expensive decorator functions when
    non-default Deprecation warnings are enabled, eg. during a Pytest run.

    Closes #​1383

v2.9.3

Compare Source

============================
Release date: 2022-01-09

  • Fixed regression where packages without a __init__.py file were
    not recognized or imported correctly.

    Closes #​1327

v2.9.2

Compare Source

============================
Release date: 2022-01-04

  • Fixed regression in astroid.scoped_nodes where _is_metaclass
    was not accessible anymore.

Closes #​1325

v2.9.1

Compare Source

============================
Release date: 2021-12-31

  • NodeNG.frame() and NodeNG.statement() will start raising ParentMissingError
    instead of AttributeError in astroid 3.0. This behaviour can already be triggered
    by passing future=True to a frame() or statement() 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 distutils handling for resolving paths to submodules.

    Ref #​1321

  • Restore custom distutils handling for resolving paths to submodules.

    Closes PyCQA/pylint#​5645

  • Fix deque.insert() signature in collections brain.

    Closes #​1260

  • Fix Module nodes not having a col_offset, end_lineno, and end_col_offset
    attributes.

  • Fix typing and update explanation for Arguments.args being None.

  • Fix crash if a variable named type is 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.0

Compare Source

============================
Release date: 2021-11-21

  • Add end_lineno and end_col_offset attributes to astroid nodes.

  • Always treat __class_getitem__ as a classmethod.

  • Add missing as_string visitor method for Unknown node.

    Closes #​1264

v2.8.6

Compare 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.5

Compare Source

============================
Release date: 2021-11-12

  • Use more permissive versions for the typed-ast dependency (<2.0 instead of <1.5)

    Closes #​1237

  • Fix crash on inference of __len__.

    Closes PyCQA/pylint#​5244

  • Added missing kind (for Const) and conversion (for FormattedValue) 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.4

Compare Source

============================
Release date: 2021-10-25

  • Fix the scope() and frame() methods of NamedExpr nodes.
    When these nodes occur in Arguments, Keyword or Comprehension nodes these
    methods now correctly point to the outer-scope of the FunctionDef,
    ClassDef, or Comprehension.

  • Fix the set_local function for NamedExpr nodes.
    When these nodes occur in Arguments, Keyword, or Comprehension nodes these
    nodes are now correctly added to the locals of the FunctionDef,
    ClassDef, or Comprehension.

v2.8.3

Compare Source

============================
Release date: 2021-10-17

v2.8.2

Compare 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.1

Compare 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.Callable and typing.Type.

  • Fix bug with importing namespace packages with relative imports

    Closes PyCQA/pylint#​5059

  • The is_typing_guard and is_sys_guard functions are deprecated and will
    be removed in 3.0.0. They are complex meta-inference functions that are better
    suited for pylint. Import them from pylint.checkers.utils instead
    (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_where function.

    Closes PyCQA/pylint#​3342

v2.8.0

Compare 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) for Name, AssignName, DelName
      • attrname (str) for Attribute, AssignAttr, DelAttr
      • op (str) for AugAssign, BinOp, BoolOp, UnaryOp
      • names (list[tuple[str, str | None]]) for Import
  • Support pyz imports

    Closes PyCQA/pylint#​3887

  • Add node_ancestors method to NodeNG for 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.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/astroid-2.x branch from 2d3d5e8 to 35124c3 Compare October 7, 2021 07:47
@renovate renovate bot changed the title Update dependency astroid to v2.8.0 Update dependency astroid to v2.8.2 Oct 7, 2021
@renovate renovate bot force-pushed the renovate/astroid-2.x branch from 35124c3 to 57f55d4 Compare October 18, 2021 16:01
@renovate renovate bot changed the title Update dependency astroid to v2.8.2 Update dependency astroid to v2.8.3 Oct 18, 2021
@renovate renovate bot force-pushed the renovate/astroid-2.x branch from 57f55d4 to ff37a2b Compare October 25, 2021 21:11
@renovate renovate bot changed the title Update dependency astroid to v2.8.3 Update dependency astroid to v2.8.4 Oct 25, 2021
@renovate renovate bot force-pushed the renovate/astroid-2.x branch from ff37a2b to be068c0 Compare March 7, 2022 09:07
@renovate renovate bot changed the title Update dependency astroid to v2.8.4 Update dependency astroid to v2.10.0 Mar 7, 2022
@renovate renovate bot force-pushed the renovate/astroid-2.x branch from be068c0 to 60769f4 Compare March 26, 2022 14:23
@renovate renovate bot changed the title Update dependency astroid to v2.10.0 Update dependency astroid to v2.11.1 Mar 26, 2022
@renovate renovate bot force-pushed the renovate/astroid-2.x branch from 60769f4 to 9479f7c Compare April 25, 2022 02:58
@renovate renovate bot changed the title Update dependency astroid to v2.11.1 Update dependency astroid to v2.11.3 Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant