Skip to content

Commit 7dab272

Browse files
authored
MAINT: fix typing mypy 1.0 (#13933)
2 parents 28f28d5 + 33fde84 commit 7dab272

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

IPython/core/guarded_eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ def eval_node(node: Union[ast.AST, None], context: EvaluationContext):
609609

610610
BUILTIN_GETITEM: Set[InstancesHaveGetItem] = {
611611
dict,
612-
str,
613-
bytes,
612+
str, # type: ignore[arg-type]
613+
bytes, # type: ignore[arg-type]
614614
list,
615615
tuple,
616616
collections.defaultdict,
@@ -619,7 +619,7 @@ def eval_node(node: Union[ast.AST, None], context: EvaluationContext):
619619
collections.ChainMap,
620620
collections.UserDict,
621621
collections.UserList,
622-
collections.UserString,
622+
collections.UserString, # type: ignore[arg-type]
623623
_DummyNamedTuple,
624624
_IdentitySubscript,
625625
}

0 commit comments

Comments
 (0)