mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 06:36:54 +08:00
Add http_client to six.moves, add missing functions to urllib2 fix some types in gettext (#262)
This commit is contained in:
committed by
Guido van Rossum
parent
49000ccc5e
commit
0bfa0636e1
@@ -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: ...
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user