Commit Graph

39 Commits

Author SHA1 Message Date
Ivan Levkivskyi 70cfe793d9 Implement PEP 526 in typed_ast (#548)
See dropbox/typed_ast#16.
2016-09-28 10:31:28 -07:00
Roy Williams b5e372bc7f Add stubs for itsdangerous. (#537)
This is needed for https://github.com/python/typeshed/issues/28
2016-09-18 14:40:18 -07:00
Roy Williams 5c52691954 Add more specific types for requests.sessions.Session (#524)
* Add more specific types for requests.sessions.Session

Once this is accepted I'd like to propegate these signatures to all of the
convience methods people actually use like get, post, put, etc...

* s/Optional[Union,/Union[None,/g
2016-09-09 12:23:32 -07:00
Michael Lee a257166149 Add missing type_comments attr to ast27.arguments (#522) 2016-09-07 11:55:27 -07:00
Drew Haven d56a5e80fb Fix six.reraise stub to take an optional traceback (#514) 2016-08-31 11:31:49 -07:00
Jakub Stasiak 9715995b2d Remove undesired type variable from lxml.objectify (#441)
typing.AnyStr usage here was a mistake that I noticed too late,
from a GitHub comment[1]:

    AnyStr is a type variable so in your version of
    objectify.fromstring() the types if text and base_url have to
    correspond -- but with unions they can each be either str or bytes,
    and that's how the rest of the API is defined.

[1] https://github.com/python/typeshed/pull/436#issuecomment-237708512
2016-08-05 05:51:20 -07:00
Jakub Stasiak a14b1893d9 Add some missing lxml stub pieces (#436) 2016-08-04 10:40:13 -07:00
Roy Williams 07bf49f55a Add stubs for dateutil.relativedelta (#421) 2016-08-03 15:39:12 -07:00
Guido van Rossum 39325bf159 Mypy now supports sys.platform and sys.version_info checks (#410) 2016-07-27 13:25:29 -07:00
Valérian Rousset a62d6207ab Fix pkg resources (#341)
Add types to pkg_resources, mostly rewrote it based on the documentation.
Also remove pkg_resources._vendor which generated by stubgen but was implementation specific.
2016-07-17 21:05:39 -07:00
David Euresti 0bfa0636e1 Add http_client to six.moves, add missing functions to urllib2 fix some types in gettext (#262) 2016-06-04 12:02:55 -07:00
Tim Simpson 917f99a01b Support for 'from six.moves import http_cookies' (#243) 2016-06-02 11:07:59 -07:00
Valérian Rousset 2b776cfb4e complete urllib (#241) 2016-06-02 09:22:29 -07:00
Eklavya Sharma bb5c93a217 Add __version__ to requests (#206) 2016-05-17 21:28:45 -07:00
David Fisher e8f626536e Add Python 3 ast module; update Python 2.7 ast module; fixup typed_ast (#170) 2016-05-04 10:40:36 -07:00
David Fisher 25b18ebcc6 Add stubs for typed_ast (#156) 2016-04-22 15:59:30 -07:00
jukebox f5f349ca8f dateutil stubs (Python 3)
PR #133
2016-04-22 08:04:58 -07:00
Matthias Kramm b817f83e11 Add missing return type for __init__() 2016-04-08 11:40:32 -07:00
Maxim Kurnikov 8b636df95a fix import fails with relative one 2016-03-08 14:55:06 +03:00
Maxim Kurnikov efb0cb9fdb fix some test fails, remove pip directory for now for simplicity 2016-03-08 14:48:43 +03:00
Maxim Kurnikov 6688dc6ea1 stubs for pkg_resources package 2016-03-08 13:42:27 +03: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
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 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 a725360139 Make six.moves into a module. 2016-01-26 20:25:30 -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 5cf2fa45b8 Add cStringIO, cPickle to six.moves. Add six.moves for PY3. 2016-01-06 16:41:22 -08:00
Matthias Kramm 94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm 4fe8915d44 Add missing '-> None' to all __init__ methods. 2015-11-09 10:25:11 -08:00
Ben Longbons 2e5489d0e6 Add six, except six.moves 2015-10-27 20:17:35 -07:00
Ben Longbons 2f49dfa1f5 Backport enum for pre-3.4 2015-10-19 20:02:14 -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 060c2e5648 add ertree stub from Ben Longbons 2015-10-12 10:48:43 -07:00
Matthias Kramm ec67428914 fix directory hierarchy in third_party/3/ 2015-10-01 18:04:49 -07:00
Matthias Kramm 337abed05a add (overwrite with) mypy stubs, if available 2015-09-30 09:59:44 -07:00