mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add types for gettext (#217)
* Add empty stubs for gettext Translations subclasses GNUTranslations and NullTranslations do not add any methods to the base Translations class, so remove the TODO comment and just declare the classes. * Add missing types for py3 gettext.
This commit is contained in:
committed by
Guido van Rossum
parent
2bb026cd76
commit
8503f13a41
@@ -29,7 +29,8 @@ class Translations(object):
|
||||
def set_output_charset(self, charset: Any) -> None: ...
|
||||
def install(self, unicode: bool = ..., names: Any = ...) -> None: ...
|
||||
|
||||
# TODO: NullTranslations, GNUTranslations
|
||||
class NullTranslations(Translations): ...
|
||||
class GNUTranslations(Translations): ...
|
||||
|
||||
def find(domain: str, localedir: str = ..., languages: List[str] = ...,
|
||||
all: Any = ...) -> Optional[Union[str, List[str]]]: ...
|
||||
|
||||
Reference in New Issue
Block a user