Commit Graph

3211 Commits

Author SHA1 Message Date
Fionn Fitzmaurice
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
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
76b295a669 subprocess: Make stdin, stdout & stderr Optional for py3 to match py2 (#3652)
Closes: #3646
2020-01-26 15:21:58 +01:00
Shantanu
b972427ad4 configparser: fix various arguments (#3632)
* configparser: fix various arguments

* configparser.ConfigParser: inherit __init__
2020-01-26 13:51:04 +01:00
Shantanu
ce42c16e03 cmath: fix log, mark positional-only args (#3659) 2020-01-25 22:18:23 -08:00
Shantanu
6a878bf715 audioop: mark positional-only args (#3658) 2020-01-25 20:06:53 -08:00
Shantanu
fd7855185e _thread: fix type of TIMEOUT_MAX (#3657) 2020-01-25 20:00:55 -08:00
Shantanu
d5851eca6f io: minor fixes for arguments (#3642) 2020-01-24 09:22:19 +01:00
Shantanu
ed95668638 builtins.pow: improve annotation (#3647) 2020-01-24 09:20:46 +01:00
crusaderky
03c9faa375 Pickle 5 (#3636) 2020-01-23 19:42:39 +01:00
Shantanu
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
32563e9e1d builtins: mark positional-only args as such (#3648) 2020-01-23 15:35:45 +01:00
Shantanu
b732342333 subprocess: add endtime for py36 and below (#3641) 2020-01-23 15:11:54 +01:00
Shantanu
295c20211d ssl: fix arguments for py36 and below (#3640) 2020-01-23 15:10:36 +01:00
Shantanu
cae73edebf http.cookies: add LegalChars for py36 and below (#3639) 2020-01-23 15:05:49 +01:00
Shantanu
7e6dbc4393 asyncio: fix various version availability (#3638) 2020-01-23 15:04:04 +01:00
Sebastian Rittau
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
324d18b956 decimal: remove non-existent args from py3, mark positional-only args (#3633) 2020-01-23 15:00:48 +01:00
Benjamin Peterson
2da1b2c426 gflags: Add is_parsed/IsParsed. (#3650) 2020-01-23 08:33:25 +01:00
Shantanu
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
8b241b5243 asyncio: fix SendfileNotAvailableError availability (#3631) 2020-01-22 17:27:58 +01:00
Shantanu
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
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
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
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
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
666ecc7cca pprint: fix argument names (#3627)
This matters for passing in arguments by keyword
2020-01-20 09:02:23 +01:00
Shantanu
b374154705 operator: mark positional-only args (#3628) 2020-01-20 09:01:02 +01:00
Shantanu
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
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
f077918918 zlib: mark positional only args (#3623)
Found using new stub checking script
2020-01-19 21:02:13 +01:00
Andrew Svetlov
dfe289e43b Fix local_addr type (#3622) 2020-01-19 19:32:20 +01:00
Shantanu
995e83ba2a zipfile: fix various stubs (#3621)
Found using new stub checking script
2020-01-19 11:52:08 +01:00
Squirrel
5d328a0c3f update stub for pycurl module (#3530) 2020-01-18 08:03:35 -08:00
Rune Tynan
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
d0f57d7d38 Fill out more attributes in six (#3589) 2020-01-18 07:41:51 -08:00
Jan Verbeek
475d1f75fe Add missing stubs to pdb and fix related issues in cmd and bdb (#3600) 2020-01-18 07:39:35 -08:00
Shantanu
b6b9df3836 sqlite3: add deterministic parameter to create_function (#3620) 2020-01-16 19:13:08 +01:00
Shantanu
cc58bb0cb1 platform: update for py38 (#3619) 2020-01-16 19:13:00 +01:00
Shantanu
137ff45282 opcode, dis: add jump parameter to stack_effect (#3618) 2020-01-16 19:08:18 +01:00
Ian Good
160b093eb3 MaildirMessage.set_date accepts a float argument (#3617) 2020-01-16 19:06:13 +01:00
Shantanu
375e8c1127 zipfile: fix ZipExtFile parameter (#3616)
This was changed in bpo-38334 and backported to Python 3.7.6 and 3.8.1.
2020-01-16 09:03:39 +01:00
Alan Du
42d68dd765 Use overloads for more precise get_context type (#3605) 2020-01-15 18:43:46 +01:00
Daniel Däschle
91d000e434 fix: add samesite parameter to set_cookie (#3614)
* Fixes #3609
* Implements samesite parameter of the set_cookie method in the werkzeug module (https://werkzeug.palletsprojects.com/en/0.15.x/wrappers/#werkzeug.wrappers.BaseResponse.set_cookie)
2020-01-15 12:04:11 +01:00
Shantanu
1b5c2dfa1f logging: update for py38 (#3595)
* logging: add stacklevel parameter everywhere

* logging: add force to basicConfig

* logging: add validate to Formatter
2020-01-14 19:45:38 +01:00
Daniël van Eeden
c4bdd90d86 Allow requests to have timeout: Tuple[float, None] (#3612) 2020-01-14 15:28:22 +01:00
Cal Paterson
1421fb1074 Change Response.headers from MutableMapping to CaseInsensitiveDict (#3610)
This fixes a type error when doing `response.headers.lower_items()`, a method
present on CaseInsensitiveDict
2020-01-14 12:41:30 +01:00
Erick
394ee4a9ae added f_fsid: int to os.statvfs_result for >= 3.7 (#3608) 2020-01-13 20:08:59 +01:00
Anthony Sottile
910cfe4b83 Add msvcrt.locking() and associated constants (#3607) 2020-01-11 17:23:41 +01:00
Shantanu
d5f1e58457 binascii: add new parameters to hexlify (#3601) 2020-01-11 17:22:06 +01:00