Skip to content

Commit

Permalink
MAINT: fix typing mypy 1.0 (ipython#13933)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Feb 7, 2023
2 parents 28f28d5 + 33fde84 commit 7dab272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IPython/core/guarded_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ def eval_node(node: Union[ast.AST, None], context: EvaluationContext):

BUILTIN_GETITEM: Set[InstancesHaveGetItem] = {
dict,
str,
bytes,
str, # type: ignore[arg-type]
bytes, # type: ignore[arg-type]
list,
tuple,
collections.defaultdict,
Expand All @@ -619,7 +619,7 @@ def eval_node(node: Union[ast.AST, None], context: EvaluationContext):
collections.ChainMap,
collections.UserDict,
collections.UserList,
collections.UserString,
collections.UserString, # type: ignore[arg-type]
_DummyNamedTuple,
_IdentitySubscript,
}
Expand Down

0 comments on commit 7dab272

Please sign in to comment.