Guido van Rossum
1c03574ac4
Use IO[bytes] instead of BytesIO in the pickle stub.
...
Reason: open() returns IO[Any], which is acceptable as IO[bytes] but not as BytesIO.
2016-03-17 12:57:42 -07:00
Matthias Kramm
42d4ec66e8
add stdlib/2.7/heapq.pyi
2016-03-17 09:19:31 -07:00
Guido van Rossum
625b9c389a
Merge pull request #122 from ahaven/contextmanager-stubs
...
Better stub for contextlib.contextmanager.
2016-03-16 15:29:39 -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
Guido van Rossum
b7eedfa07c
Merge pull request #120 from mgeisler/pickle-py2
...
Complete pickle and cPickle stubs for Python 2
2016-03-15 12:43:58 -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
6dcb32c7d9
Merge pull request #119 from mgeisler/pickle
...
Complete pickle stubs
2016-03-15 08:04:59 -07:00
Guido van Rossum
f523a8e9f1
Merge pull request #116 from mgeisler/configparser
...
Add stubs for configparser
2016-03-15 08:02:53 -07:00
Guido van Rossum
b1a5d2194f
Merge pull request #118 from mgeisler/getpass
...
Complete getpass stubs
2016-03-15 07:59:10 -07:00
Guido van Rossum
98c86edfbd
Merge pull request #117 from mgeisler/ignore-editor-backup-files
...
Ignore Emacs backup files
2016-03-15 07:58:06 -07:00
Martin Geisler
94467be42f
Complete pickle stubs
2016-03-15 10:26:33 +01:00
Martin Geisler
c0b9786fee
Complete getpass stubs
2016-03-15 10:15:31 +01:00
Martin Geisler
35162eb564
Ignore Emacs backup files
2016-03-15 09:56:01 +01:00
Martin Geisler
808016a510
Add stubs for configparser
2016-03-15 09:52:24 +01:00
Guido van Rossum
c40da79e8f
Merge pull request #106 from mkurnikov/setuptools-stubs
...
Stubs for setuptools' pkg_resources package
2016-03-14 18:41:48 -07:00
Guido van Rossum
540a9e18f7
Bandaid for sqlalchemy. Lots of stuff here seems bogus. :-(
2016-03-14 10:50:44 -07: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
Guido van Rossum
a946304d49
Merge pull request #113 from ddfisher/master
...
Make all function annotations accessible from builtins complete
2016-03-11 16:49:23 -08:00
David Fisher
44d278045f
Fix tests
2016-03-11 16:33:02 -08: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
Guido van Rossum
35c3917c29
The tornado tests now pass.
2016-03-10 10:23:11 -08:00
Guido van Rossum
b2c4b10d6b
Merge pull request #112 from isg/patch-1
...
Add tornado.locks module
2016-03-09 21:37:26 -08:00
Isaac Goldberg
2255e6c69a
Add tornado.locks module
2016-03-09 19:11:48 -08:00
Guido van Rossum
b31e5eec54
Merge pull request #110 from jstasiak/python3-inspect
...
Improve Python 3 inspect stub
2016-03-09 16:31:19 -08:00
Jakub Stasiak
ea37877558
Improve Python 3 inspect stub
...
This is follow-up to a similar commit improving Python 2.7 inspect stub[1].
Similarly, this commit consists of:
* Splitting and reordering the content into sections corresponding
to the module's documentation sections
* Implementing missing functions, classes etc.
* Adding TODOs for things that are either difficult to get or I can't
figure them out right now
* Making the existing code consistent with the newly added things
As suggested in pull request #108 I'm modifying the generic Python 3
stub even though some things changed and were added in various Python
3.x releases - the changes seem to be backwards compatible and the
additions, well, they should not break much except for some false
positives on older Python 3 versions.
Some of the types in this stub were not obvious so I either read the
source code or used my judgment.
[1] 630f718376
2016-03-10 01:28:07 +01:00
Guido van Rossum
df40eab77f
Merge pull request #111 from jstasiak/python27-inspect-fix
...
Fix Python 2.7 inspect stub (currentframe + frame type)
2016-03-09 16:14:40 -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
ddf43e3bdb
Make tests version-aware. Now only tornado and sqlalchemy stubs fail.
2016-03-09 12:38:51 -08:00
Guido van Rossum
54ba6d9b73
Fix typos: termina[ta]te().
2016-03-09 09:21:15 -08:00
Ismail
f682335037
Fix typo
2016-03-09 12:01:32 +00:00
Ismail
8d893cfae8
Make forward references strings
2016-03-09 11:58:24 +00:00
Ismail
d21c09919d
Creating __init__.pyi files
2016-03-09 11:18:00 +00:00
Ismail
395e0a4197
Fix mypy errors for Py3.1 files
2016-03-09 11:17:23 +00:00
Ismail
d2461d2bcd
Merge branch 'feature/type_check_xml' of github.com:ismail-s/typeshed into feature/type_check_xml
2016-03-09 11:10:33 +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
Ismail
7686cb1a9c
Make pyi files work for Py3 and Py3.1
2016-03-09 11:09:33 +00:00
Ismail
4c06be4972
Add files for Py 3.3 and 3.2
2016-03-09 11:09:33 +00:00
Ismail
6a9b713ce3
Add files for Py3.5
2016-03-09 11:09:33 +00:00
Ismail
b7f4055c08
Create files for Py3.4
2016-03-09 11:09:33 +00:00
Ismail
865ec0e277
Remove unnecessary __methods__
2016-03-09 11:09:33 +00:00
Ismail
8db369f7e2
Improve types on ElementPath
2016-03-09 11:09:33 +00:00
Ismail
1fc5b0b8c5
Type check rest of ElementTree file
2016-03-09 11:09:33 +00:00