Anthony Sottile
f9318703f3
fix typing for psutil sconn ( #6669 )
2021-12-22 20:22:13 -08:00
Anthony Sottile
60f2d2f86f
improve urlencode(...) annotation for quote_via ( #6345 )
2021-12-20 18:30:35 -08:00
Anthony Sottile
43f0cb5533
add stripe.util.populate_headers ( #6637 )
2021-12-20 17:51:30 -08:00
Anthony Sottile
afcf213936
fill out api methods for stripe.Customer ( #6638 )
2021-12-20 17:50:54 -08:00
Anthony Sottile
7983d49f73
fill out api stubs for stripe.Account ( #6639 )
2021-12-20 17:50:21 -08:00
Anthony Sottile
ece3183c14
fill out api stubs for stripe.SubscriptionItem ( #6640 )
2021-12-20 17:48:09 -08:00
Anthony Sottile
3bf165d723
correct border= and fill= kwargs for ImageOps.expand ( #6641 )
2021-12-20 17:47:01 -08:00
Anthony Sottile
3008032076
pygments.formatters.get_all_formatters yields Formatters ( #6636 )
2021-12-20 15:21:10 -08:00
Anthony Sottile
f1e367851c
Fix types of enum _member_names, etc. ( #5986 )
...
Move fields onto EnumMeta
2021-09-02 11:46:57 +02:00
Anthony Sottile
b91b0615bf
werkzeug.utils.redirect: location is a str ( #5240 )
2021-04-22 21:47:35 -07:00
Anthony Sottile
bc90043e54
update Subscript.slice type for python3.9 ( #3950 )
2020-04-28 17:32:08 -07:00
Anthony Sottile
8e46eb7b85
create_subprocess_shell takes a single positional argument ( #3929 )
2020-04-19 13:46:37 +02:00
Anthony Sottile
9ec0bcf7e4
Add cookie_re / blank_re to py3 tokenize ( #3745 )
2020-02-20 23:10:30 +01:00
Anthony Sottile
5d27ffc8c7
Add a few attributes to distutils.ccompiler.CCompiler ( #3741 )
2020-02-19 20:33:17 +01:00
Anthony Sottile
c0da627d40
Add cmdclass to distutils.dist.Distribution ( #3742 )
2020-02-19 12:18:41 +01:00
Anthony Sottile
b98eaf47cc
Fix typing for plistlib.load{,s} ( #3738 )
2020-02-15 20:25:05 -08:00
Anthony Sottile
e38b110f7b
xml.sax.parse may also take IO[bytes] ( #3725 )
2020-02-05 20:56:57 +01:00
Anthony Sottile
d0f57d7d38
Fill out more attributes in six ( #3589 )
2020-01-18 07:41:51 -08:00
Anthony Sottile
910cfe4b83
Add msvcrt.locking() and associated constants ( #3607 )
2020-01-11 17:23:41 +01:00
Anthony Sottile
9c724e9e60
Fix signature of multiprocessing.get_start_method ( #3415 )
2019-10-28 17:39:14 +01:00
Anthony Sottile
9feb21d029
Add werkzeug.exceptions.FailedDependency ( #3403 )
...
Available since werkzeug==0.15.0
2019-10-24 00:14:52 +02:00
Anthony Sottile
c0371df172
dir argument to tempfile functions may take PathLike ( #3226 )
2019-09-29 16:09:22 +02:00
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