Jukka Lehtosalo
8df19841bb
Make Queue generic in Python 2, similar to Python 3 ( #155 )
2016-04-22 15:49:02 +01:00
Jukka Lehtosalo
5eaf522cde
Fixes to urllib2 stubs ( #154 )
2016-04-22 13:19:37 +01:00
David Fisher
a8ef40467d
Fix type error in 2.7 stubs ( #152 )
2016-04-20 14:07:30 -07:00
Michael R. Crusoe
2f59de4713
Change logging signatures to allow unicode ( #150 )
2016-04-18 09:41:38 -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
Jukka Lehtosalo
fcef262a9b
Support keyword arguments for dict() (Python 2) ( #148 )
2016-04-17 13:07:54 +01:00
Guido van Rossum
78e6e9b740
Add Text to typing.pyi; it's an alias for unicode in 2.7, for str in 3.
2016-04-16 13:42:17 -07:00
Guido van Rossum
23ec1ff96a
Break cycle between typing and collections. (Requires a fix in mypy.)
2016-04-15 21:31:49 -07:00
Katherine Lai
8c59f8f58e
Fix select stub for 2.7 (timeout should be optionally present and float) ( #135 )
2016-04-10 20:46:37 -07:00
Ivan Levkivskyi
db3cc2e8da
Enable typing.DefaultDict as an alias for collections.defaultdict ( #139 )
2016-04-09 09:32:20 -07:00
Matthias Kramm
28dbd6cc6a
change ='' to :str=... in httplib
2016-04-08 11:59:34 -07:00
Matthias Kramm
68400b74ab
Add 2.7/optparse.pyi
2016-04-08 11:49:14 -07:00
Guido van Rossum
dca8eeb1fe
Ouch. The itertools.chain situation is slightly more complicated.
2016-04-07 15:34:45 -07:00
Guido van Rossum
17e74036f5
Implement itertools.chain.from_iterable().
2016-04-07 14:48:38 -07:00
Isaac Goldberg
bc2716ff33
Update dbapi2.pyi to allow execute without binding params
...
According to https://docs.python.org/2/library/sqlite3.html this is totally allowed!
2016-03-23 11:47:52 -07:00
Guido van Rossum
bf501353a0
Hopeful fix for fcntl stubs -- change return values back to Any.
2016-03-22 12:21:17 -07:00
mulhern
f1d08cb420
Fix signature for reduce in some files.
...
I believe that the signature in stdlib/3/functools.pyi is the correct model
for all versions of reduce.
2016-03-22 10:24:44 -04:00
Guido van Rossum
3ff8635d2c
Merge pull request #124 from ddfisher/master
...
Add version keyword arg to argparse.ArgumentParser.add_argument
2016-03-18 10:04:19 -07:00
David Fisher
c89218bc77
Add version keyword arg to argparse.ArgumentParser.add_argument
2016-03-17 10:37:22 -07:00
Matthias Kramm
42d4ec66e8
add stdlib/2.7/heapq.pyi
2016-03-17 09:19:31 -07:00
Drew Haven
1f86531ead
Better stub for contextlib.contextmanager.
2016-03-16 15:00:37 -07:00
Matthias Kramm
d4540dca2e
remove superfluous type comment in urllib.pyi
2016-03-16 12:03:42 -07:00
Martin Geisler
c3a2b26ce2
cPickle: complete Python 2 stubs
2016-03-15 19:49:19 +01:00
Martin Geisler
6fec910c66
pickle: sync Python 2.7 stubs with Python 3 version
...
The Python 3 version was added in 94467be .
2016-03-15 19:49:06 +01:00
Guido van Rossum
cae70c3707
Merge pull request #115 from mr-c/patch-3
...
Allow adding custom argparse.Actions in add_argument
2016-03-14 09:53:13 -07:00
Michael R. Crusoe
e0a3fd2a5f
Allow custom actions
2016-03-14 09:06:50 -07:00
David Fisher
9f4a8d3df6
Address review feedback
2016-03-11 16:01:30 -08:00
David Fisher
d390ef3161
Make all function annotations accessible from builtins complete
2016-03-11 14:27:28 -08:00
Jakub Stasiak
983d8cbf5e
Fix Python 2.7 inspect stub (currentframe + frame type)
...
inspect.currentframe() return a frame object on its own, not as a part
of a record.
Additionally the artificial _Frame type is unnecessary as
types.FrameType exists.
2016-03-10 00:56:03 +01:00
Guido van Rossum
307516c95b
Merge pull request #101 from Naruto0/master
...
sqlite3 stub for 2.7 and 3
2016-03-09 13:13:20 -08:00
Guido van Rossum
33f13dec18
Merge pull request #108 from jstasiak/python27-inspect
...
Improve Python 2.7 inspect stub
2016-03-09 13:07:37 -08:00
Guido van Rossum
49446569e1
Merge pull request #98 from ismail-s/feature/type_check_xml
...
Type check xml.etree module
2016-03-09 12:48:56 -08:00
Guido van Rossum
54ba6d9b73
Fix typos: termina[ta]te().
2016-03-09 09:21:15 -08:00
Ismail
8d893cfae8
Make forward references strings
2016-03-09 11:58:24 +00:00
Ismail
28bc685573
Remove KeysView & ItemsView from py2 type hints
2016-03-09 11:09:34 +00:00
Ismail
69f1810462
Add pyi files for Py2.7
2016-03-09 11:09:33 +00:00
Jakub Stasiak
630f718376
Improve Python 2.7 inspect stub
...
This patch consists of:
* Splitting and reordering the content into sections corresponding
to the module's documentation sections
* Implementing some missing functions
* Adding TODOs for missing stuff (I may've missed something)
The signature of isgenerator() (was: Any argument, is: argument of type
object) is changed for consistency with other is* functions I added
here, after some considerations I couldn't decide whether it should be
object or Any - if object is not advised please let me know.
2016-03-09 02:45:43 +01:00
Guido van Rossum
6a496215e7
Revert "Merge pull request #95 from youtux/feature/decimal-2.7"
...
This broke our build.
This reverts commit 0a496917e3 , reversing
changes made to c8630a238d .
2016-03-08 10:38:45 -08:00
Guido van Rossum
96bb21f023
Stubs for pdb (only the most useful functions).
2016-03-07 12:17:41 -08:00
Filip Hron
753e6452db
little edit
2016-03-07 15:25:01 +01:00
Filip Hron
fc9d795460
geting rid of backslashes and other stuff
2016-03-07 14:51:24 +01:00
Guido van Rossum
01e817b17c
Merge pull request #104 from ymyzk/update-gc
...
Update stub for gc
2016-03-05 21:03:43 -08:00
Yusuke Miyazaki
3193c317df
Update stub for zlib
2016-03-06 10:03:55 +09:00
Yusuke Miyazaki
7c6e946386
Update stub for gc
2016-03-06 09:25:49 +09:00
Filip Hron
7d8808a07f
Date is datetime.datetime type
2016-03-04 10:42:36 +01:00
Filip Hron
7755945c3e
minor changes
2016-03-04 02:12:28 +01:00
Filip Hron
f85c695648
small fixture
2016-03-04 01:56:41 +01:00
Filip Hron
eaa9f3f0d0
sqlite3 documentation excursion
2016-03-04 01:46:51 +01:00
Filip Hron
e7e50b6997
attempt to get rid of TODOS, should i edit tests too?
2016-03-03 16:55:33 +01:00
Filip Hron
5b92f7cbc5
putting @overload decorator back to getsockopt method
2016-03-03 10:15:56 +01:00