add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

39
stdlib/3/gettext.pyi Normal file
View File

@@ -0,0 +1,39 @@
# Stubs for gettext (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class NullTranslations:
def __init__(self, fp=None): ...
def add_fallback(self, fallback): ...
def gettext(self, message): ...
def lgettext(self, message): ...
def ngettext(self, msgid1, msgid2, n): ...
def lngettext(self, msgid1, msgid2, n): ...
def info(self): ...
def charset(self): ...
def output_charset(self): ...
def set_output_charset(self, charset): ...
def install(self, names=None): ...
class GNUTranslations(NullTranslations):
LE_MAGIC = ... # type: Any
BE_MAGIC = ... # type: Any
def lgettext(self, message): ...
def lngettext(self, msgid1, msgid2, n): ...
def gettext(self, message): ...
def ngettext(self, msgid1, msgid2, n): ...
def find(domain, localedir=None, languages=None, all=False): ...
def translation(domain, localedir=None, languages=None, class_=None, fallback=False,
codeset=None): ...
def install(domain, localedir=None, codeset=None, names=None): ...
def textdomain(domain=None): ...
def bindtextdomain(domain, localedir=None): ...
def dgettext(domain, message): ...
def dngettext(domain, msgid1, msgid2, n): ...
def gettext(message): ...
def ngettext(msgid1, msgid2, n): ...
Catalog = ... # type: Any