1 | #!/usr/bin/env python2
|
2 | """
|
3 | invalid_too_many_defaults.py
|
4 | """
|
5 | from __future__ import print_function
|
6 |
|
7 | from typing import List, Dict
|
8 |
|
9 | s = ''
|
10 | mylist = [] # type: List[int]
|
11 | d = {} # type: Dict[int, int]
|
12 |
|
13 | if s:
|
14 | print('string')
|
15 |
|
16 | if mylist:
|
17 | print('List')
|
18 |
|
19 | if d:
|
20 | print('Dict')
|
21 |
|
22 | b = True if s else False
|
23 | b = True if mylist else False
|
24 | b = True if d else False
|
25 |
|
26 | if not mylist:
|
27 | print('List')
|
28 |
|
29 | other_list = [] # type: List[str]
|
30 | if not mylist and not other_list:
|
31 | print('List')
|