Commit Graph

2350 Commits

Author SHA1 Message Date
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
Guido van Rossum
e7f731e74b Revert "Improve typing of 2.7/contextlib::contextmanager."
This reverts commit 76c3a5bab0.
2015-11-26 21:02:23 -08:00
Guido van Rossum
76c3a5bab0 Improve typing of 2.7/contextlib::contextmanager. 2015-11-25 16:59:50 -08:00
Guido van Rossum
00f8e62751 Add __getattr__(), __setattr__(), __delattr__() to 2.7 threading.local(). 2015-11-25 16:57:52 -08:00
Guido van Rossum
bbbccf61dc Add 'closing' to 2.7 contextlib stubs (same as for 3). 2015-11-24 21:08:02 -08:00
Jukka Lehtosalo
d3efa5d6bc Add missing definitions to Python 3 'traceback' 2015-11-23 21:49:51 -08:00
Guido van Rossum
a0deb69be9 Updated stub for 2.7 httplib; new stubs for 2.7 mimetools, rfc822. 2015-11-23 10:29:38 -08:00
Guido van Rossum
7b75dec702 Make last two slice() args optional in 2.7. 2015-11-22 21:08:38 -08:00
Guido van Rossum
1f7b00e451 Add more constants to 2.7 os stub, copied from 3.x os stub. 2015-11-22 17:02:41 -08:00
Guido van Rossum
9ae0c0b337 Fix argparse.Namespace better. 2015-11-22 16:28:54 -08:00
Guido van Rossum
830dc1f95b Add discard() method to 2.7 set(). 2015-11-22 16:20:19 -08:00
Guido van Rossum
dc5a1e34a3 Fix 2.7 signature of fnmatch.translate(). 2015-11-22 16:18:29 -08:00
Guido van Rossum
ea35d5c8e6 Add __getattr__ to argparse.Namespace. 2015-11-20 14:38:23 -08:00
Guido van Rossum
32cce184cf Backport enum for 2.7. 2015-11-20 14:34:33 -08:00
Matthias Kramm
54b49839fc Improve return value of ArgumentParser.parse_args
See https://github.com/python/typeshed/issues/25
2015-11-11 16:31:37 -08:00
Matthias Kramm
87f4f54000 Fix duplicate definition in array.pyi. 2015-11-09 15:37:30 -08:00
Matthias Kramm
2601a12c88 fix return types in _io.pyi 2015-11-09 14:06:49 -08:00
Matthias Kramm
3b47859261 Add missing 'type:' 2015-11-09 13:58:09 -08:00
Matthias Kramm
94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm
375bf063b1 Fix parse errors 2015-11-09 13:37:08 -08:00
Matthias Kramm
20f8635d73 fix syntax errors in unicodedata.pyi 2015-11-09 10:36:29 -08:00
Matthias Kramm
4fe8915d44 Add missing '-> None' to all __init__ methods. 2015-11-09 10:25:11 -08:00
Matthias Kramm
d2a3d4a4ed Use explicit "# type: str" instead of '' shortcut. 2015-11-09 07:59:24 -08:00
matthiaskramm
63e441e804 Merge pull request #23 from o11c/six-no-moves
Six without six.moves
2015-10-29 13:11:43 -07:00
Matthias Kramm
617e93fb11 add link to o11c/stubtool 2015-10-28 13:27:11 -07:00
Ben Longbons
2e5489d0e6 Add six, except six.moves 2015-10-27 20:17:35 -07:00
Ben Longbons
c0aea8e8aa Finish implementation of the types module
Note that many classes will need special handling in the typing module.
2015-10-27 20:17:35 -07:00
Matthias Kramm
33036f1b3b Rename _ellipsis to ellipsis.
mypy depends on the latter.
2015-10-21 10:54:30 -07:00
Matthias Kramm
e158a97ab2 Add BufferError, Ellipsis to 2.7/ 2015-10-21 10:51:12 -07:00
Matthias Kramm
4f06e3b964 Add a 2.7 symlink builtins.pyi --> __builtin__.pyi
Temporarily, for mypy.
2015-10-20 10:07:12 -07:00
matthiaskramm
7ccc71aa85 Merge pull request #20 from o11c/builtin
Fix name of the builtin module in python2
2015-10-20 10:03:45 -07:00
Ben Longbons
bc5880c749 Fix name of the builtin module in python2 2015-10-20 09:54:13 -07:00
matthiaskramm
ee1930d861 Merge pull request #15 from o11c/lots
Lots of stub fixes
2015-10-20 07:17:17 -07:00
Ben Longbons
c2f892a409 Fix stubs that assumed reexport without as 2015-10-19 20:02:39 -07:00
Ben Longbons
2f49dfa1f5 Backport enum for pre-3.4 2015-10-19 20:02:14 -07:00
Ben Longbons
56fe787c74 Update a bunch of stubs 2015-10-19 20:02:10 -07:00
Matthias Kramm
e4a7edb949 Apply urllib3 fix from JukkaL 2015-10-12 15:28:04 -07:00
Matthias Kramm
ea12378512 it's etree, not ertree 2015-10-12 14:31:57 -07:00
Matthias Kramm
c1e554af68 fix syntax of types.pyi 2015-10-12 14:30:17 -07:00
Matthias Kramm
060c2e5648 add ertree stub from Ben Longbons 2015-10-12 10:48:43 -07:00
Ben Longbons
f2a12774ee Use SupportsBytes 2015-10-12 10:45:04 -07:00