Brian Maissy and GitHub
e5999ac76b
make stubs for configparser.getint()/float/bool accept a generically-typed fallback ( #3684 )
...
Closes #3681
2020-01-29 14:43:46 +01:00
Jan Verbeek and GitHub
95cafc0b7c
sys: Correct types of sys.displayhook, sys.excepthook and variants ( #3673 )
...
displayhook should accept any object, not just integers.
displayhook and excepthook may be assigned to, so they should be
Callable values rather than function definitions. That way it's fine
to assign a function with different argument names. Their dunder
variants are supposed to be constant.
2020-01-29 11:25:35 +01:00
Shantanu and GitHub
46d9b38fa1
json: mark kwonly args, improve decode ( #3679 )
...
* json: mark args as kwonly for py36 on
* json: add undocumented arg to JSONDecoder.decode
2020-01-29 11:20:08 +01:00
Shantanu and GitHub
26fd2b7968
sqlite3: alias OptimizedUnicode to str for py3 ( #3678 )
2020-01-29 11:18:19 +01:00
Shantanu and GitHub
ac234f2592
turtle: various improvements ( #3677 )
...
* turtle: add None and default value to overloads
* turtle: add default value to write_docstringdict
* turtle: fix _Screen.setup
2020-01-29 11:17:16 +01:00
Shantanu and GitHub
b3a9bfd5db
pyexpat: improve ParserCreate, mark positional-only args ( #3676 )
2020-01-29 11:11:56 +01:00
Shantanu and GitHub
119547b931
xml: fix default values, mark positional-only args ( #3675 )
...
Note xml.etree.ElementTree.TreeBuilder.start has a default value for
attrs in the C-accelerated module.
2020-01-29 11:09:53 +01:00
Shantanu and GitHub
437b6947eb
dbm: mark positional-only args ( #3674 )
2020-01-29 11:03:55 +01:00
eb6ce3cacb
Fix socket.socket.ioctl ( #3669 )
...
Fixes #3495
Co-authored-by: Niels Buwen <nielsbuwen@users.noreply.github.com >
2020-01-27 21:25:33 -08:00
Ilaï Deutel and Jelle Zijlstra
e7ddb21ae6
range.index() takes exactly one argument ( #3668 )
2020-01-27 20:19:12 -08:00
Niklas Fiekas and Jelle Zijlstra
64fea9c543
asyncio: get_returncode() and get_pipe_transport() can return None ( #3663 )
2020-01-26 12:38:11 -08:00
Fionn Fitzmaurice and Sebastian Rittau
d413b4b162
Fix Crypto.Random.randrange argument types ( #3662 )
...
Crypto.random.randrange takes the same argument types as random.randrange.
2020-01-26 18:54:01 +01:00
Oleg Höfling and Sebastian Rittau
99d79696d7
accept optional extras in asyncio.BaseTransport init ( #3661 )
...
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com >
2020-01-26 15:48:44 +01:00
Jason Gilholme and Sebastian Rittau
76b295a669
subprocess: Make stdin, stdout & stderr Optional for py3 to match py2 ( #3652 )
...
Closes : #3646
2020-01-26 15:21:58 +01:00
Shantanu and Sebastian Rittau
b972427ad4
configparser: fix various arguments ( #3632 )
...
* configparser: fix various arguments
* configparser.ConfigParser: inherit __init__
2020-01-26 13:51:04 +01:00
Shantanu and Jelle Zijlstra
ce42c16e03
cmath: fix log, mark positional-only args ( #3659 )
2020-01-25 22:18:23 -08:00
Shantanu and Jelle Zijlstra
6a878bf715
audioop: mark positional-only args ( #3658 )
2020-01-25 20:06:53 -08:00
Shantanu and Jelle Zijlstra
fd7855185e
_thread: fix type of TIMEOUT_MAX ( #3657 )
2020-01-25 20:00:55 -08:00
Shantanu and Sebastian Rittau
d5851eca6f
io: minor fixes for arguments ( #3642 )
2020-01-24 09:22:19 +01:00
Shantanu and Sebastian Rittau
ed95668638
builtins.pow: improve annotation ( #3647 )
2020-01-24 09:20:46 +01:00
crusaderky and Sebastian Rittau
03c9faa375
Pickle 5 ( #3636 )
2020-01-23 19:42:39 +01:00
Shantanu and Sebastian Rittau
edd1ec8a62
_codecs: fix various issues ( #3649 )
...
* _codecs: mark positional-only args as such
* _codecs: rename __data to __str where relevant
* _codecs: fix utf_16_ex_decode and utf_32_ex_decode
* _codecs: fix default value of charmap_encode
* _codecs: fix availability of charbuffer_encode
2020-01-23 15:38:58 +01:00
Shantanu and Sebastian Rittau
32563e9e1d
builtins: mark positional-only args as such ( #3648 )
2020-01-23 15:35:45 +01:00
Shantanu and Sebastian Rittau
b732342333
subprocess: add endtime for py36 and below ( #3641 )
2020-01-23 15:11:54 +01:00
Shantanu and Sebastian Rittau
295c20211d
ssl: fix arguments for py36 and below ( #3640 )
2020-01-23 15:10:36 +01:00
Shantanu and Sebastian Rittau
cae73edebf
http.cookies: add LegalChars for py36 and below ( #3639 )
2020-01-23 15:05:49 +01:00
Shantanu and Sebastian Rittau
7e6dbc4393
asyncio: fix various version availability ( #3638 )
2020-01-23 15:04:04 +01:00
Sebastian Rittau and GitHub
0e3286bc43
Remove consent requirement for third-party stubs ( #3643 )
...
This was discussed a while ago on typing-sig. Consequently the
requirement of asking third-party maintainers for permission was
removed from PEP 484.
2020-01-23 15:01:30 +01:00
Shantanu and Sebastian Rittau
324d18b956
decimal: remove non-existent args from py3, mark positional-only args ( #3633 )
2020-01-23 15:00:48 +01:00
Benjamin Peterson and Sebastian Rittau
2da1b2c426
gflags: Add is_parsed/IsParsed. ( #3650 )
2020-01-23 08:33:25 +01:00
Shantanu and Jelle Zijlstra
b4da2b694b
csv: re-export Dialect from _csv ( #3613 )
...
Resolves #3611
Tested with mypy on:
```
f = open("asdf.csv", "w")
csv.writer(f)
csv.writer(f, dialect=csv.excel)
csv.writer(f, dialect=csv.excel())
csv.DictReader(f)
csv.DictReader(f, dialect=csv.excel)
csv.DictReader(f, dialect=csv.excel())
class CustomDialect(csv.Dialect):
delimiter = "%"
csv.writer(f, dialect=CustomDialect)
csv.writer(f, dialect=CustomDialect())
```
2020-01-22 17:11:52 -08:00
Shantanu and Sebastian Rittau
8b241b5243
asyncio: fix SendfileNotAvailableError availability ( #3631 )
2020-01-22 17:27:58 +01:00
Shantanu and Sebastian Rittau
e3dfaa6608
hashlib: fix arguments ( #3626 )
...
* hashlib: fix argument names
* hashlib: add default values to scrypt, make args Optional
2020-01-22 10:20:40 +01:00
Shantanu and Jelle Zijlstra
e048dd2b3b
heapq: fix arguments ( #3645 )
...
* heapq: mark positional-only args
* heapq: fix types for args with default value None
2020-01-21 17:52:38 -08:00
Shantanu and Sebastian Rittau
d889de033a
argparse: various fixes ( #3630 )
...
- add_subparsers uses keyword-only args
- required parameter is new in py37
2020-01-21 19:38:58 +01:00
Shantanu and Sebastian Rittau
d2da7d17c2
difflib: various fixes ( #3629 )
...
- add undocumented parameters to IS_LINE_JUNK and IS_CHARACTER_JUNK
- add kw-only charset to make_file
2020-01-21 19:30:05 +01:00
Shantanu and Sebastian Rittau
39d72bb61e
distutils: various fixes ( #3634 )
...
- fix parameter name in `move_file`
- make `setup` keyword-only args keyword-only
- add undocumented (positional!) `swig_opts` parameter to `Extension`
2020-01-21 07:08:48 +01:00
Shantanu and Sebastian Rittau
666ecc7cca
pprint: fix argument names ( #3627 )
...
This matters for passing in arguments by keyword
2020-01-20 09:02:23 +01:00
Shantanu and Sebastian Rittau
b374154705
operator: mark positional-only args ( #3628 )
2020-01-20 09:01:02 +01:00
Shantanu and Sebastian Rittau
ba8b2585c6
ast: some fixes for py38 ( #3625 )
...
* ast: make parse args keyword-only
* ast: get_source_segment is py38 on
2020-01-20 08:50:59 +01:00
Shantanu and Sebastian Rittau
32959dfe6e
math: correct argument kinds ( #3624 )
...
* math: make positional-only args positional-only
* math: make keyword-only args keyword-only
2020-01-19 21:04:43 +01:00
Shantanu and Sebastian Rittau
f077918918
zlib: mark positional only args ( #3623 )
...
Found using new stub checking script
2020-01-19 21:02:13 +01:00
Andrew Svetlov and Sebastian Rittau
dfe289e43b
Fix local_addr type ( #3622 )
2020-01-19 19:32:20 +01:00
Shantanu and Sebastian Rittau
995e83ba2a
zipfile: fix various stubs ( #3621 )
...
Found using new stub checking script
2020-01-19 11:52:08 +01:00
Squirrel and Jelle Zijlstra
5d328a0c3f
update stub for pycurl module ( #3530 )
2020-01-18 08:03:35 -08:00
Rune Tynan and Jelle Zijlstra
85afac3bd5
Add (_)dummy_threading module, identical to threading ( #3554 )
...
* Add (_)dummy_threading module, identical to threading
* Remove unnecessary comment, add consistency check
2020-01-18 07:42:32 -08:00
Anthony Sottile and Jelle Zijlstra
d0f57d7d38
Fill out more attributes in six ( #3589 )
2020-01-18 07:41:51 -08:00
Jan Verbeek and Jelle Zijlstra
475d1f75fe
Add missing stubs to pdb and fix related issues in cmd and bdb ( #3600 )
2020-01-18 07:39:35 -08:00
Shantanu and Sebastian Rittau
b6b9df3836
sqlite3: add deterministic parameter to create_function ( #3620 )
2020-01-16 19:13:08 +01:00
Shantanu and Sebastian Rittau
cc58bb0cb1
platform: update for py38 ( #3619 )
2020-01-16 19:13:00 +01:00