Skip to content

Commit 1ebd4c4

Browse files
committed
Fixes checkexpr to use Python 3.4/3.5 compatible syntax
1 parent 8f84256 commit 1ebd4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ def union_overload_matches(self, callables: List[CallableType]) -> Optional[Call
12111211
Returns None if it is not possible to combine the different callables together in a
12121212
sound manner."""
12131213

1214-
new_args: List[List[Type]] = [[] for _ in range(len(callables[0].arg_types))]
1214+
new_args = [[] for _ in range(len(callables[0].arg_types))] # type: List[List[Type]]
12151215

12161216
expected_names = callables[0].arg_names
12171217
expected_kinds = callables[0].arg_kinds

0 commit comments

Comments
 (0)