Commit Graph

190 Commits

Author SHA1 Message Date
Guido van Rossum
71d15d6943 Remove outdated things from README. 2016-01-14 09:11:38 -08:00
Guido van Rossum
d98f4a585b Merge pull request #42 from python/move
Move contents of builtins/* to stdlib/*. This simplifies finding stubs.

Checked against mypy, it works.
2016-01-12 14:14:00 -08:00
Guido van Rossum
8c2118bace Move contents of builtins/* to stdlib/*. This simplifies finding stubs. 2016-01-12 12:53:18 -08:00
Guido van Rossum
0938e8f5de Add flush keyword arg to print() (even though 3.2 does not support it). 2016-01-12 11:18:20 -08:00
Guido van Rossum
8539624f05 Fix Reversible.__reversed__() return type. (I should do more testing.) 2016-01-11 16:04:44 -08:00
Guido van Rossum
1c02f14dc1 Make Reversible covariant. Fixes #19. (Though it does not seem to be *necessary*.) 2016-01-11 15:32:43 -08:00
Guido van Rossum
0673b7bab9 Add Generator to 2.7/typing.pyi. Fixes #29. 2016-01-11 15:26:22 -08:00
Guido van Rossum
605c189f29 Merge pull request #39 from rmcgibbo/json
Add keyword args to stdlib's json.pyi
2016-01-11 13:49:24 -08:00
Robert T. McGibbon
dfd7ceecd8 Add type annotations for json.load(s) 2016-01-11 13:23:59 -08:00
Guido van Rossum
e463890df7 2.7 does not have lru_cache(). 2016-01-11 08:14:11 -08:00
Matthias Kramm
129bf57659 Merge pull request #40 from rmcgibbo/lru_cache
Enhance type information for lru_cache
2016-01-11 05:55:32 -08:00
Robert T. McGibbon
a40418ed7b Enhance type information for lru_cache 2016-01-11 01:46:05 -08:00
Robert T. McGibbon
0735ec0251 Add keyword args to stdlib's json.pyi 2016-01-10 23:37:17 -08:00
Guido van Rossum
87bc00eb2a Unify 2.7 and 3 stubs for functools. 2016-01-08 10:10:50 -08:00
Matthias Kramm
42da4e56f9 Have ast.pyi re-export symbols from _ast.pyi. 2016-01-08 10:03:06 -08:00
Jukka Lehtosalo
0d7b6ce135 Fix Python 3 six.moves
This was breaking mypy Travis build.
2016-01-08 15:25:50 +00:00
Guido van Rossum
505b108ced Merge pull request #35 from mrwright/master
Fix types for timetuple and utctimetuple
2016-01-07 15:59:42 -08:00
Matthew Wright
72e8813a1a Fix types for timetuple and utctimetuple 2016-01-07 15:45:01 -08:00
Guido van Rossum
5cf2fa45b8 Add cStringIO, cPickle to six.moves. Add six.moves for PY3. 2016-01-06 16:41:22 -08:00
Guido van Rossum
0f21b59a30 Some updates now typing.Container is defined. 2016-01-06 16:38:14 -08:00
Guido van Rossum
9aabb149e3 Simplify PY3 len() spec, no Union with tuple needed. 2016-01-06 16:35:02 -08:00
Guido van Rossum
0eac99679c Add object.__setattr__ for 2.7. 2016-01-06 16:34:26 -08:00
Guido van Rossum
017f4efa0f Simplify SystemRandom now it subclasses Random, for 2.7 and 3. 2016-01-06 16:29:04 -08:00
Guido van Rossum
cb40959116 Improve 2.7 stub for tempfile. 2016-01-06 16:21:35 -08:00
Guido van Rossum
ee8e8fcb69 Swap max() and min() overloads so max(x, y) and min(x, y) work as expected. 2016-01-06 16:15:56 -08:00
Guido van Rossum
71b8a9f9ec Update 2.7 built-in set to be the same as PY3 set. AbstractSet does not have a union() method. 2016-01-06 16:06:58 -08:00
Guido van Rossum
76b746ba3f Add object.__new__ so it can be called. 2016-01-06 15:55:27 -08:00
Guido van Rossum
f37bd69266 Add abstractproperty.__new__ so it can be used. 2016-01-06 15:48:47 -08:00
Matthias Kramm
cff4aa066b Merge pull request #34 from catch22/patch-2
Update random.pyi
2015-12-30 13:21:23 -08:00
Michael Walter
c62821221a Update random.pyi
SystemRandom derives from Random (see http://svn.python.org/projects/python/branches/py3k/Lib/random.py).
2015-12-30 22:18:10 +01:00
Matthias Kramm
28e1cbec46 Merge pull request #33 from catch22/patch-1
Update shlex.pyi
2015-12-30 13:04:28 -08:00
Michael Walter
05a711ec27 Update shlex.pyi
Type of `shlex.whitespace_split` is `bool`.
2015-12-30 21:59:56 +01:00
Matthias Kramm
4a1674a148 Improve Python 2 stub for abc; _weakrefset stub. 2015-12-22 15:38:28 -08:00
Matthias Kramm
2bb0d98b6d add Python 2 stubs for ast, tokenize 2015-12-22 12:01:02 -08:00
Matthias Kramm
cbb8014508 Add __version__ to _ast.pyi. 2015-12-22 09:54:37 -08:00
Matthias Kramm
a3987c09e6 Merge pull request #32 from gnprice/sequence
Sequence: match 2 to 3 in typing, remove redundant base classes in builtins
2015-12-22 05:50:56 -08:00
Greg Price
08d08fbabb builtins: Reversible is redundant when Sequence is already present
This has been true for a while with our Python 3 typing.pyi,
and just became true with the Python 2 typing.pyi in the last
commit.
2015-12-21 18:12:23 -08:00
Greg Price
f3b499fd99 typing: update 2 to match 3 on Sequence and Container 2015-12-21 18:11:14 -08:00
matthiaskramm
c0493bd3d0 Merge pull request #31 from gnprice/operator
operator: share in 2and3, and make attrgetter and friends usable
2015-12-17 15:31:48 -08:00
Greg Price
667b98040a operator: Make attrgetter, itemgetter, methodcaller usable 2015-12-17 15:12:47 -08:00
Greg Price
b46b66c187 Share operator in 2and3 2015-12-17 14:49:34 -08:00
Jukka Lehtosalo
bd36a37481 Add __setattr__ to object 2015-12-05 15:44:28 -08:00
Guido van Rossum
a4c268c4e4 The typing stub should not import asyncio. Fixes https://github.com/JukkaL/mypy/issues/1050 . 2015-12-05 14:22:45 -08:00
Guido van Rossum
107104dfe5 Fix type annotation syntax used in asyncio/futures.pyi. 2015-12-04 11:43:45 -08:00
Guido van Rossum
0687239f53 Inaugurate six.moves with zip (copied from builtins). 2015-12-04 09:09:01 -08:00
Guido van Rossum
d7b9c96ec9 Merge pull request #30 from rowillia/master
Add Async classes to typing stub.
2015-12-03 15:31:12 -08:00
Roy Williams
7f22db0492 Add Async classes to typing stub. 2015-12-01 23:36:19 -08:00
Guido van Rossum
30af935dc7 Make partial a generic type (the parameter being the return type). 2015-11-30 15:12:42 -08:00
Guido van Rossum
cea5060892 Add sqlite3 stubs. 2015-11-30 15:12:42 -08:00
Jukka Lehtosalo
4c547fc4f6 Add object.__new__
Not entirely sure about the right signature, though.
2015-11-29 12:18:42 -08:00