mypy
332616cd - [1.0 backport] Fix internal crash when resolve same partial type twice (#14552) (#14553)

Commit
3 years ago
[1.0 backport] Fix internal crash when resolve same partial type twice (#14552) (#14553) Fixes: #14548 Fixed case when untyped list item type resolving can lead to an internal crash. Code to reproduce this issue: ```py arr = [] arr.append(arr.append(1)) ``` Basically, the issue is that after the first resolving of `arr.append` method, `var` is deleted from `partial_types`, and as war as `arr.append` is a nested call we try to delete the same `var` that was already deleted. Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Author
Parents
Loading