Commit Graph
15 Commits
Author SHA1 Message Date
Ben Darnell 088fd393b8 Add stdlib/3/tokenize.pyi (#151)
Mostly stubgen, with open() added by hand because stubgen somehow
doesn't see it.
2016-04-17 19:59:47 -07:00
Ben Darnell 2ddbf901c9 2.7 stub updates (#149)
* Stubgen modules for 2.7

Cookie
email._parseaddr
email.utils
genericpath
linecache
mimetypes
multiprocessing
multiprocessing.process
multiprocessing.util
posixpath
quopri
runpy
weakref
wsgiref.validate

* 2.7/typing.py: add missing __contains__ definition

* 2.7/subprocess.py: make output argument to CalledProcessError optional

Commit f08160bd did the same for py3.

* 2.7/hmac.pyi: add compare_digest

This function was introduced to the 2.7 series in 2.7.7.

* Stubgen 2.7/ssl.pyi

This replaces a nearly-empty handwritten stub.

* Copy constants and other definitions from py3 to py2 ssl.pyi

* 2.7/__future__.pyi: add methods

* 2.7/_weakref.pyi: backport some definitions from 3.x version

* Stubgen 2.7/locale.pyi

Hand-edited to remove declarations that are redundant (and cause
conflicts with) the "from _locale import *" line.
2016-04-17 19:02:55 -07:00
Ben Darnell 54e4f51e25 Stubgen _operator.
This is needed by hmac. Stubgen has a parse failure on the operator
module (without the underscore prefix).
2016-04-11 00:27:58 -04:00
Ben Darnell 21d082a4bc Stubgen curses (and _curses)
Manual tweak to remove reference to curses.has_key (which is a fallback
for when the C module doesn't have it)
2016-04-11 00:27:58 -04:00
Ben Darnell 9fa161fe51 Stubgen gzip (and _compression) 2016-04-11 00:27:58 -04:00
Ben Darnell e2dde66eb1 Stubgen assorted stdlib modules 2016-04-11 00:27:58 -04:00
Ben Darnell 57e25550bc concurrent.futures: stubgen
Imports had to be fixed up manually.
2016-04-11 00:27:58 -04:00
Ben Darnell a3498d9883 weakref: add WeakKeyDictionary 2016-04-11 00:27:58 -04:00
Ben Darnell 9d2f90d2dc collections: convert from module to package
Making room for collections.abc
2016-04-11 00:27:58 -04:00
Ben Darnell f489c54501 traceback: make first argument to format_exc optional 2016-04-11 00:27:58 -04:00
Ben Darnell f08160bd4c subprocess: make output argument to CalledProcessError optional 2016-04-11 00:27:58 -04:00
Ben Darnell 0248a5cbcf Add methods to __future__._Feature 2016-04-11 00:27:58 -04:00
Ben Darnell 1626c25087 Add some third_party modules.
backports_abc and singledispatch were made with stubgen, certifi was
written by hand, and ssl_match_hostname was copied from ssl.pyi.
2016-01-16 16:56:25 -05:00
Ben Darnell b7b7da1a85 Stubgen some more stdlib modules.
Copy doctest.pyi from 3 to 2.7.
2016-01-16 16:54:47 -05:00
Ben Darnell 3a674645a5 Assorted fixes to stubs 2016-01-16 16:52:01 -05:00