Anthony Sottile
29dde6c883
Fix type annotations for get_wch / unget_wch ( #3157 )
2019-07-30 17:57:11 +02:00
Anthony Sottile
32a89809f0
curses: getch returns an integer ( #3156 )
2019-07-30 09:25:01 +02:00
Anthony Sottile
f76b7b273b
Re-export _curses._CursesWindow from curses ( #3117 )
2019-07-13 08:01:10 -07:00
Anthony Sottile
2a57ce2cec
Add curses.COLORS and curses.COLOR_PAIRS ( #3115 )
2019-07-13 07:50:13 -07:00
Anthony Sottile
ed2a851ed8
dateutil: byweekday can take weekday ( #3046 )
2019-06-10 11:21:50 -07:00
Anthony Sottile
cfa65b831b
flask.Flask.run: port can be str ( #2903 )
...
https://github.com/pallets/flask/blob/86bf9dca72cd188813e26ef5dd972101ef8983cf/flask/app.py#L933
2019-04-08 11:41:37 -07:00
Anthony Sottile
c3cf369c6f
Document required= argument for add_subparsers in py37+ ( #2416 )
2018-08-23 19:39:34 -07:00
Anthony Sottile
56c93c85c0
Add NoReturn to execv* family of functions ( #2226 )
2018-06-15 07:55:45 -07:00
Anthony Sottile
395ab5abd1
Values of data are Optional ( #2231 )
2018-06-15 07:48:55 -07:00
Anthony Sottile
be3c43cf63
A Thread(target=...) function can return anything ( #2224 )
2018-06-13 11:50:17 -07:00
Anthony Sottile
c4ee2ed36a
Correct annotation for fileinput.input ( #2223 )
...
```python
import fileinput
with fileinput.input(files=('foo.txt',), inplace=True, backup='') as f:
for line in f:
print(f'prefix{line}', end='')
```
```
$ mypy test2.py
test2.py:3: error: "Iterable[str]" has no attribute "__enter__"; maybe "__iter__"?
test2.py:3: error: "Iterable[str]" has no attribute "__exit__"
```
```
$ mypy test2.py --custom-typeshed typeshed
$
```
2018-06-12 15:45:11 -07:00
Anthony Sottile
270fba2e4e
Add headers attribute to HTTPResponse ( #2190 )
2018-06-05 08:11:12 -07:00
Anthony Sottile
2d4bb04ab3
json.load can also take IO[bytes] in py36+ ( #2188 )
2018-06-03 19:02:55 -07:00
Anthony Sottile
03044212d4
Add typings for bool __{r,}{and,or,xor}__ ( #1795 )
2017-12-20 21:04:55 -08:00