return type for translation.get_language should not be Optional (#446)

This commit is contained in:
Alexander Viklund
2020-08-18 11:41:52 +02:00
committed by GitHub
parent e764b1cf4c
commit 9f3b95841b

View File

@@ -57,7 +57,7 @@ class override(ContextDecorator):
def __enter__(self) -> None: ...
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
def get_language() -> Optional[str]: ...
def get_language() -> str: ...
def get_language_from_path(path: str) -> Optional[str]: ...
def get_language_bidi() -> bool: ...
def check_for_language(lang_code: Optional[str]) -> bool: ...