Skip to content

Commit 7dab272

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy