From a0cac85961a6ef54e9d760b86efef51b33da1aa6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 28 Jan 2022 06:12:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ChangeLog | 2 +- astroid/nodes/node_classes.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f780a8b83d..fb216ac871 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,7 +20,7 @@ Release date: TBA Closes #1330 -* Introduce `qname` method for `AssignAttr` nodes for cases where they are treated +* Introduce `qname` method for `AssignAttr` nodes for cases where they are treated as Class definitions to fix a crash while inferring them as modules. What's New in astroid 2.9.4? diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py index c46a35555a..da77916a6a 100644 --- a/astroid/nodes/node_classes.py +++ b/astroid/nodes/node_classes.py @@ -1079,6 +1079,7 @@ def qname(self): names.append(cur.name) return ".".join(reversed(names)) + class Assert(Statement): """Class representing an :class:`ast.Assert` node.