Commit Graph

2150 Commits

Author SHA1 Message Date
Ivan Levkivskyi
db3cc2e8da Enable typing.DefaultDict as an alias for collections.defaultdict (#139) 2016-04-09 09:32:20 -07:00
Matthias Kramm
5f76369093 Move warnings.pyi into 2and3/. 2016-04-08 14:43:43 -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
tharvik
3c92450972 add __dict__ attribute to class instance 2016-04-04 08:46:04 +02:00
Isaac Goldberg
f2c309b363 Also updates python3's sqlite execute() 2016-03-23 13:12:13 -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
7484499ce5 Merge pull request #121 from jukebox/fileinput
fileinput first version
2016-03-23 10:35:04 -07:00
Julien Hebert
6d68962ed7 with Guido fixes 2016-03-23 08:30:39 +01: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
Julien Hebert
2eaf1933b8 files is optional 2016-03-22 08:38:08 +01:00
Julien Hebert
83e51ac3cb inherit 2016-03-22 06:33:31 +01:00
Julien Hebert
a8d2158aaf missing import 2016-03-21 11:00:55 +01:00
Julien Hebert
871ebbf566 io anystr 2016-03-21 10:58:00 +01:00
Julien Hebert
6df6bc8f86 missing callable 2016-03-20 21:55:42 +01:00
Julien Hebert
5ae1c1beb7 wrong syntax 2016-03-20 14:20:24 +01:00
Julien Hebert
703b88b0c0 openhook is callable 2016-03-20 14:10:33 +01:00
Julien Hebert
d1baa1deaa missing one 2016-03-20 14:03:47 +01:00
Julien Hebert
941f86a163 files type 2016-03-20 13:55:19 +01:00
Julien Hebert
78fa0cd5eb pep8 2016-03-20 13:49:37 +01:00
Julien Hebert
4fdf23d5bd no unexported 2016-03-20 13:25:17 +01:00
Julien Hebert
ac8ed664a9 without comments 2 2016-03-18 19:40:49 +01: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
Guido van Rossum
3657e5146e Merge pull request #123 from jstasiak/python3-fcntl
Improve Python 3 fcntl stub
2016-03-17 16:53:49 -07:00
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
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
Jakub Stasiak
7f9276c87c Improve Python 3 fcntl stub
This patch:

* Adds some constants that although undocumented are exposed by the
  module
* Modifies the signature of fcntl() to match reality
* Adds missing function stubs
* Modifies few existing constant declarations to match the repository
  conventions

I believe the stub is complete now (and if it's not there isn't much
missing).
2016-03-17 02:43:18 +01: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
Julien Hebert
ba026fc120 fileinput first version 2016-03-16 18:30:37 +01: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
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
808016a510 Add stubs for configparser 2016-03-15 09:52:24 +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
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
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
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