Skip to content

Commit 4335785

Browse files
committed
Fix mypy error in new code (corrected)
1 parent 8264f8d commit 4335785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/expandtype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, Iterable, List, TypeVar, Mapping, cast
1+
from typing import Any, Dict, Iterable, List, TypeVar, Mapping, cast
22

33
from mypy.types import (
44
Type, Instance, CallableType, TypeVisitor, UnboundType, AnyType,
@@ -96,7 +96,7 @@ def visit_type_var(self, t: TypeVarType) -> Type:
9696
return repl
9797

9898
def visit_callable_type(self, t: CallableType) -> Type:
99-
extra = {}
99+
extra = {} # type: Dict[str, Any]
100100
if t.type_guard is not None:
101101
extra['type_guard'] = t.type_guard.accept(self)
102102
return t.copy_modified(arg_types=self.expand_types(t.arg_types),

0 commit comments

Comments
 (0)