Commit Graph

79 Commits

Author SHA1 Message Date
Tim Abbott
a648f5eee1 Fix incorrect sys.exit() type. 2016-02-05 11:28:16 -08:00
Jukka Lehtosalo
89ed6e92d4 Add abc.abstractproperty (Python 3) 2016-02-04 15:38:42 +00:00
Robert T. McGibbon
9933080b04 Update builtins.pyi 2016-02-03 15:20:03 -08:00
Robert T. McGibbon
8739c4a188 Improvements to builtins min/max 2016-02-03 15:16:52 -08:00
Guido van Rossum
6e69d24b07 Merge pull request #75 from ismail-s/feature/type_check_webbrowser
Add py2 webbrowser type checking
2016-02-01 09:28:09 -08:00
Ismail
b6dfeebe1e Move webbrowser.pyi to 2and3 folder 2016-02-01 10:00:53 +00:00
Guido van Rossum
68f771266d Merge pull request #74 from timabbott/exec
Add missing exec*, EX_* stubs for python 2 and fix py3 types.
2016-01-29 18:02:35 -08:00
Tim Abbott
0632f2e530 Add missing exec*, EX_* stubs for python 2 and fix py3 types. 2016-01-29 17:54:24 -08:00
Guido van Rossum
22990dff4e Merge pull request #73 from ismail-s/feature/type_check_webbrowser
Type Check webbrowser py3 module
2016-01-29 12:13:41 -08:00
Ismail
56621384a0 Type Check webbrowser py3 module 2016-01-29 14:12:09 +00:00
Tim Abbott
9ad37b5701 Add urllib.request.proxy_bypass stubs. 2016-01-27 22:12:16 -08:00
Tim Abbott
fcb63d2028 Add stubs for UserList, UserString, UserDict. 2016-01-27 21:36:47 -08:00
Guido van Rossum
c48b931d92 Merge pull request #69 from timabbott/tabbott-html
Add html module stubs.
2016-01-27 21:21:57 -08:00
Tim Abbott
9db84e7ffe Add stubs for HTMLParser, html.parser, and six.moves.html_parser. 2016-01-27 21:09:30 -08:00
Guido van Rossum
b9ad64a038 Merge pull request #68 from timabbott/tabbott-stubs
Expand stubs for simplejson, unittest, email
2016-01-27 19:49:53 -08:00
Tim Abbott
b30ca8e42b Add python 2 email.message_from_* stubs (and add types for py3). 2016-01-27 15:46:00 -08:00
Guido van Rossum
e40c3eb8c9 Revert "Fix min()/max() overloading with key= parameter. Fixes #1150."
It has other problems, e.g. complains about max(x, 10) when the type of x is Any.

This reverts commit 6a47ac7116.
2016-01-27 11:10:40 -08:00
Tim Abbott
8f3f56d07f Add some missing python 3 urllib.parse stubs. 2016-01-26 20:25:30 -08:00
Tim Abbott
9e62b7df06 Add urllib.response stub for Python 3. 2016-01-26 20:25:30 -08:00
Tim Abbott
70eb00d3f2 Fix missing urllib.error ContentTooShortError stub. 2016-01-26 20:25:30 -08:00
Tim Abbott
f036fd05f3 Add stubs for urllib.robotparser. 2016-01-26 20:25:30 -08:00
Guido van Rossum
ba4d782f70 Fix bug in traceback.pyi (hey, tests are useful!). 2016-01-26 16:57:45 -08:00
Tim Abbott
920def0b1e Fix datetime.timedelta() argument types to be floats. 2016-01-26 16:30:15 -08:00
Tim Abbott
c2555b3119 Port stub for os.walk from python 3 to 2 and cleanup comment. 2016-01-26 16:30:15 -08:00
Tim Abbott
c17d0120a9 Add stubs for traceback.format_exception. 2016-01-26 16:30:15 -08:00
Tim Abbott
55830ec190 Fix type for py2 traceback.format_exc and add to python 3. 2016-01-26 16:30:15 -08:00
Guido van Rossum
6a47ac7116 Fix min()/max() overloading with key= parameter. Fixes #1150. 2016-01-26 11:13:14 -08:00
Guido van Rossum
17d8f20fd5 Add message attribute to class BaseException. 2016-01-25 16:32:47 -08:00
Guido van Rossum
cf82278301 Use plain bytes instead of ByteString in 3/builtins.pyi. 2016-01-25 08:12:46 -08:00
Ismail
fd4d063bb4 Implement fromhex and maketrans method 2016-01-25 15:43:06 +00:00
Guido van Rossum
2c4549fb36 Merge pull request #51 from DanielShaulov/threading
Some fixes to threading
2016-01-23 09:10:24 -08:00
Daniel Shaulov
e2c9ec5cb0 Merge branch 'master' into threading
Conflicts:
	stdlib/3/threading.pyi
2016-01-23 10:34:30 +00:00
Matthias Kramm
25a3fac0fd Fix default parameter syntax.
Use 'x:bool = ...' instead of 'x:bool = True' or 'x:bool = False'.
2016-01-22 16:39:15 -08:00
Daniel Shaulov
14ffe7ea17 Inherit from Any in threading.local and SimpleNamespace 2016-01-22 12:24:36 +02:00
David Fisher
7c8797441b Make Generator __iter__ method return itself 2016-01-19 16:49:20 -08:00
Guido van Rossum
740568ed25 Use NamedTuple for inspect.ArgSpec and .FullArgSpec. 2016-01-18 16:51:23 -08:00
Guido van Rossum
2d82816e14 Add Iterable base class to csv.DictReader. Fixes #47. 2016-01-18 16:39:08 -08:00
Ben Darnell
b7b7da1a85 Stubgen some more stdlib modules.
Copy doctest.pyi from 3 to 2.7.
2016-01-16 16:54:47 -05:00
Ben Darnell
3a674645a5 Assorted fixes to stubs 2016-01-16 16:52:01 -05:00
Daniel Shaulov
01d96e4ac4 Fix signatures of __init__ for Thread and Timer 2016-01-16 00:21:24 +02:00
DanielShaulov
723ed4f98f Add timer class to threading.pyi 2016-01-15 18:13:22 +02:00
Guido van Rossum
5463335be2 Make deque inherit from MutableMapping (with difficulty). Fixes #43. 2016-01-14 09:14:38 -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
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
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
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