Commit Graph
29 Commits
Author SHA1 Message Date
Tim Abbott a648f5eee1 Fix incorrect sys.exit() type. 2016-02-05 11:28:16 -08:00
Tim Abbott e8dc3cdd7b Fix urlunparse stubs for 2.7 to correctly support a list/iterator argument. 2016-02-02 11:47:46 -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
Tim Abbott 9c816a32c4 Expand the sqlalchemy stubs related to the Column model. 2016-01-28 21:46:29 -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
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
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
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
Tim AbbottandTim 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 AbbottandTim 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 AbbottandTim Abbott 8f3f56d07f Add some missing python 3 urllib.parse stubs. 2016-01-26 20:25:30 -08:00
Tim AbbottandTim Abbott 9e62b7df06 Add urllib.response stub for Python 3. 2016-01-26 20:25:30 -08:00
Tim AbbottandTim Abbott 70eb00d3f2 Fix missing urllib.error ContentTooShortError stub. 2016-01-26 20:25:30 -08:00
Tim AbbottandTim Abbott f036fd05f3 Add stubs for urllib.robotparser. 2016-01-26 20:25:30 -08:00
Tim AbbottandTim Abbott a725360139 Make six.moves into a module. 2016-01-26 20:25:30 -08:00
Tim AbbottandGuido van Rossum 920def0b1e Fix datetime.timedelta() argument types to be floats. 2016-01-26 16:30:15 -08:00
Tim AbbottandGuido van Rossum c2555b3119 Port stub for os.walk from python 3 to 2 and cleanup comment. 2016-01-26 16:30:15 -08:00
Tim AbbottandGuido van Rossum c17d0120a9 Add stubs for traceback.format_exception. 2016-01-26 16:30:15 -08:00
Tim AbbottandGuido van Rossum 55830ec190 Fix type for py2 traceback.format_exc and add to python 3. 2016-01-26 16:30:15 -08:00
Tim Abbott ddc33a3c7c Add missing stub for os.exit on python 2. 2016-01-25 16:33:35 -08:00
Tim Abbott b180914208 Fix os.wait and os.waitpid annotations on python 2. 2016-01-25 16:33:35 -08:00
Tim Abbott 21c90d52b9 Fix re module constant stubs for 2.7.
ASCII doesn't exist in 2.7, but UNICODE and TEMPLATE do.
2016-01-25 12:32:31 -08:00
Tim Abbott c0d0f7fe14 Fix os.environ improperly classified as not mutable for python 2.
In Python, you can change the environment by writing to os.environ.

This seems to already be handled correctly in the python 3 type data,
so we just need to fix it for 2.7.
2016-01-22 17:47:53 -08:00