Commit Graph

13 Commits

Author SHA1 Message Date
Elazar Gershuni
090667c7b2 fix self in urllib (#643) 2016-10-30 15:01:46 -07:00
peterdotran
aef68f323f Added attributes for URLError and HTTPError (#494) 2016-08-23 17:55:51 -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
Eklavya Sharma
a424eeb1f8 Fix some stubs in urllib.parse (#334)
* urllib.parse: Make return type of unquote_from_bytes str.

* urllib.parse: Reject encoding when quote is passed bytes.

encoding and errors must not be supplied to quote_plus and
quote if the first parameter is a bytes, or a TypeError is raised.
So overload quote and do not put encoding and errors in the
version where bytes is the first parameter.

quote and quote_plus also allow string and safe to be of different
types.  Also allow that in the stubs.
2016-07-04 13:53:46 -07:00
Alvaro Caceres
d0ac66f5f8 Use "..." for attribute values, instead of None, [], {} 2016-06-15 14:10:04 -05:00
Valérian Rousset
2b776cfb4e complete urllib (#241) 2016-06-02 09:22:29 -07:00
Tim Abbott
9ad37b5701 Add urllib.request.proxy_bypass stubs. 2016-01-27 22:12:16 -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
Matthias Kramm
94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm
337abed05a add (overwrite with) mypy stubs, if available 2015-09-30 09:59:44 -07:00