Commit Graph

1222 Commits

Author SHA1 Message Date
Ismail
56621384a0 Type Check webbrowser py3 module 2016-01-29 14:12:09 +00:00
Tim Abbott
9c816a32c4 Expand the sqlalchemy stubs related to the Column model. 2016-01-28 21:46:29 -08:00
Guido van Rossum
730ea8ce73 Merge pull request #70 from timabbott/sqlalchemy
Fix and greatly expand stubs for sqlalchemy.
2016-01-28 13:26:02 -08:00
Guido van Rossum
913495886d Wrote a runtests.py script. It has some flaws, hence the -x args in .travis.yml. 2016-01-28 13:22:45 -08:00
Tim Abbott
123b3cb2ea Fix and greatly expand stubs for sqlalchemy.
This probably still needs a lot more work to be perfect; in particular
I'm not sure exactly which parts should be re-exported from
sqlalchemy/__init__.pyi and sqlalchemy/sql/__init__.pyi, but this
works with all the ways I can test it easily right now.

Also, while I've fixed sqlalchemy.sql, sqlalchemy.orm is still totally
broken since it tries to re-export tons of stuff that doesn't have
stubs yet.
2016-01-28 12:34:50 -08:00
Guido van Rossum
f6f3d4d9ca Sigh. Need to write a local test script. 2016-01-28 11:36:52 -08:00
Guido van Rossum
f77e9dc9a0 Better approach to testing. Fixes #7. 2016-01-28 11:17:26 -08:00
Guido van Rossum
6452fb0c90 Merge pull request #71 from timabbott/urllib
Add various annotations to complete more of six.moves.
2016-01-28 10:29:16 -08:00
Tim Abbott
f624349a46 Re-enable python 2 urllib.error stubs. 2016-01-27 22:13:54 -08:00
Tim Abbott
9ad37b5701 Add urllib.request.proxy_bypass stubs. 2016-01-27 22:12:16 -08:00
Tim Abbott
0cb13efa28 Add python 2 urllib2 stubs. 2016-01-27 22:08:23 -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
Guido van Rossum
390b566a31 Comment out references to modules without stubs introduced by accident. 2016-01-27 21:16:40 -08:00
Tim Abbott
5f8358f7e3 Add html_entities import stubs to six.moves. 2016-01-27 21:09:30 -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
Matthias Kramm
9b9c232f75 Fix ast.parse(). The 2nd and 3rd arg are optional. 2016-01-27 19:26:57 -08:00
Tim Abbott
8af7ece855 Port unittest stub from python 3 to python 2.7.
I did this by taking the python 3 stub, and then reading a diff of
unittest.py between python 2 and python 3 and correcting the
differences.
2016-01-27 16:35:39 -08:00
Tim Abbott
f6a0b8de0c Expand stub for simplejson module to include decoders/encoders. 2016-01-27 16:35:39 -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
9cc81d4eeb Add 2.7 stubs for dict.fromkeys(). Fixes mypy #1176. 2016-01-27 15:20:46 -08:00
Matthias Kramm
3ba178ddc4 Merge pull request #67 from howardzlee/frozenset
Copy frozenset stubs from 3/builtins.pyi into 2.7/__builtin__.pyi.
2016-01-27 14:56:11 -08:00
Howard Lee
f8f0551a9e Copy frozenset stubs from 3/builtins.pyi into 2.7/__builtin__.pyi. 2016-01-27 14:32:45 -08:00
Guido van Rossum
4f4c6ff786 Fix constructor signatures to 2.7/cPickle.{Pickler,Unpickler}. 2016-01-27 11:43:45 -08:00
Guido van Rossum
14ffe2c13a Fix signature for 2.7/binascii.crc32(). 2016-01-27 11:42:47 -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
Guido van Rossum
73dfe84342 Merge pull request #61 from timabbott/tabbott-six
Add stubs for some of the most heavily used parts of six.moves
2016-01-27 09:09:10 -08:00
Tim Abbott
11e179501a Add six.moves.urllib stubs using imports.
Based on https://github.com/python/typeshed/pull/21.
2016-01-26 20:25:30 -08:00
Tim Abbott
bcdec9043d Redo six.moves to be implemented purely using imports.
Based on https://github.com/python/typeshed/pull/21.
2016-01-26 20:25:30 -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
Tim Abbott
a725360139 Make six.moves into a module. 2016-01-26 20:25:30 -08:00
Guido van Rossum
99175b6815 Merge pull request #64 from python/travis3
Test 2and3, 3.3, 3.4.
2016-01-26 20:14:45 -08:00
Guido van Rossum
b3666b52cf Test 2and3, 3.3, 3.4. 2016-01-26 20:10:24 -08:00
Guido van Rossum
51807bfa6a Merge pull request #63 from python/travis2
Add stdlib/2.7 to Travis CI tests.
2016-01-26 20:05:43 -08:00
Guido van Rossum
bf1dde5636 Fix tokenize.pyi; fix cp command. 2016-01-26 20:01:34 -08:00
Guido van Rossum
9e15a1db0a Add stdlib/2.7 to Travis CI tests. 2016-01-26 17:30:54 -08:00
Guido van Rossum
9e2df48687 Merge pull request #62 from python/travis
Add a Travis CI configuration.
2016-01-26 17:19:56 -08:00
Guido van Rossum
ba4d782f70 Fix bug in traceback.pyi (hey, tests are useful!). 2016-01-26 16:57:45 -08:00
Guido van Rossum
b091a7311c Use the correct pip install incantation. 2016-01-26 16:54:18 -08:00
Guido van Rossum
c6f15133cf Add a Travis CI configuration. 2016-01-26 16:50:47 -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
2011e178a6 Merge pull request #60 from mihneagiurgea/fix-concurrent-futures
Fix stubs for concurrent.futures
2016-01-26 12:15:36 -08:00
Mihnea Giurgea
050143f2b1 Fix stubs for concurrent.futures 2016-01-26 11:46:47 -08:00