From a2c166cf5fc334c9011422340b9d9d1a575a2a25 Mon Sep 17 00:00:00 2001 From: DudeNr33 <3929834+DudeNr33@users.noreply.github.com> Date: Wed, 21 Jul 2021 08:24:01 +0200 Subject: Fix crash if a callable returning a context manager was assigned to a list or dict item (#4733) * Fix crash if left hand side of assignment is neither ``astroid.AssignName`` nor ``astroid.AssignAttr`` * Add ChangeLog and whatsnew entry --- doc/whatsnew/2.9.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/whatsnew/2.9.rst b/doc/whatsnew/2.9.rst index 669b9c8bc..0c3b41577 100644 --- a/doc/whatsnew/2.9.rst +++ b/doc/whatsnew/2.9.rst @@ -102,3 +102,5 @@ Other Changes * No longer emit ``consider-using-with`` for ``ThreadPoolExecutor`` and ``ProcessPoolExecutor`` as they have legitimate use cases without a ``with`` block. + +* Fix crash if a callable returning a context manager was assigned to a list or dict item -- cgit v1.2.1