From 7dab272e339709a2ef155f9d992a99678e426294 2023-02-07 17:29:43 From: Matthias Bussonnier Date: 2023-02-07 17:29:43 Subject: [PATCH] MAINT: fix typing mypy 1.0 (#13933) --- diff --git a/IPython/core/guarded_eval.py b/IPython/core/guarded_eval.py index d60a5c5..3c95213 100644 --- a/IPython/core/guarded_eval.py +++ b/IPython/core/guarded_eval.py @@ -609,8 +609,8 @@ SUPPORTED_EXTERNAL_GETITEM = { BUILTIN_GETITEM: Set[InstancesHaveGetItem] = { dict, - str, - bytes, + str, # type: ignore[arg-type] + bytes, # type: ignore[arg-type] list, tuple, collections.defaultdict, @@ -619,7 +619,7 @@ BUILTIN_GETITEM: Set[InstancesHaveGetItem] = { collections.ChainMap, collections.UserDict, collections.UserList, - collections.UserString, + collections.UserString, # type: ignore[arg-type] _DummyNamedTuple, _IdentitySubscript, }