From 33fde8415bea3e744daa75578406a7b8b393f367 2023-02-07 17:17:44 From: Matthias Bussonnier Date: 2023-02-07 17:17:44 Subject: [PATCH] MAINT: fix typing mypy 1.0 --- 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, }