From 88c0a1bb2021ea9d5ff2a248124e820e15186937 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Tue, 23 Nov 2021 11:22:54 +0000 Subject: [PATCH] Update strict equality allowlist Names of some of types have changed in typeshed. Accept both the old and the new names for now. Tested manually with the latest typeshed. --- mypy/checkexpr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index e850744b5c71..ac413981d7d2 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -107,6 +107,8 @@ "typing.ItemsView", "builtins._dict_keys", "builtins._dict_items", + "_collections_abc.dict_keys", + "_collections_abc.dict_items", ]