diff --git a/stdlib/2.7/gettext.pyi b/stdlib/2.7/gettext.pyi index 7c3048410..7752aa1df 100644 --- a/stdlib/2.7/gettext.pyi +++ b/stdlib/2.7/gettext.pyi @@ -22,7 +22,7 @@ class Translations(object): def ugettext(self, message: str) -> unicode: ... def ngettext(self, singular: str, plural: str, n: int) -> str: ... def lngettext(self, singular: str, plural: str, n: int) -> str: ... - def ungettext(self, singular: str, plural: str, n: int) -> str: ... + def ungettext(self, singular: str, plural: str, n: int) -> unicode: ... def info(self) -> Any: ... def charset(self) -> Any: ... def output_charset(self) -> Any: ... diff --git a/stdlib/2.7/urllib2.pyi b/stdlib/2.7/urllib2.pyi index 471b4931e..fba73a0cf 100644 --- a/stdlib/2.7/urllib2.pyi +++ b/stdlib/2.7/urllib2.pyi @@ -1,4 +1,5 @@ +from typing import AnyStr from urllib import addinfourl class URLError(IOError): ... @@ -149,3 +150,6 @@ class CacheFTPHandler(FTPHandler): def setMaxConns(self, m): ... def check_cache(self): ... def clear_cache(self): ... + +def parse_http_list(s: AnyStr) -> List[AnyStr] : ... +def parse_keqv_list(l: List[AnyStr]) -> Dict[AnyStr, AnyStr]: ... diff --git a/third_party/2.7/six/moves/__init__.pyi b/third_party/2.7/six/moves/__init__.pyi index e2dee78a3..072b4d697 100644 --- a/third_party/2.7/six/moves/__init__.pyi +++ b/third_party/2.7/six/moves/__init__.pyi @@ -23,8 +23,10 @@ from itertools import izip_longest as zip_longest import six.moves.cPickle as cPickle import HTMLParser as html_parser import htmlentitydefs as html_entities +import httplib as http_client import six.moves.urllib_parse as urllib_parse import six.moves.urllib_error as urllib_error import six.moves.urllib as urllib import six.moves.urllib_robotparser as urllib_robotparser + diff --git a/third_party/3/six/moves/__init__.pyi b/third_party/3/six/moves/__init__.pyi index b2dc6cd11..859a7ebc1 100644 --- a/third_party/3/six/moves/__init__.pyi +++ b/third_party/3/six/moves/__init__.pyi @@ -26,6 +26,7 @@ from itertools import zip_longest as zip_longest import six.moves.cPickle as cPickle import html.parser as html_parser import html.entities as html_entities +import http.client as http_client import six.moves.urllib_parse as urllib_parse import six.moves.urllib_error as urllib_error