mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
return type for translation.get_language should not be Optional (#446)
This commit is contained in:
committed by
GitHub
parent
e764b1cf4c
commit
9f3b95841b
@@ -57,7 +57,7 @@ class override(ContextDecorator):
|
|||||||
def __enter__(self) -> None: ...
|
def __enter__(self) -> None: ...
|
||||||
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> 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_from_path(path: str) -> Optional[str]: ...
|
||||||
def get_language_bidi() -> bool: ...
|
def get_language_bidi() -> bool: ...
|
||||||
def check_for_language(lang_code: Optional[str]) -> bool: ...
|
def check_for_language(lang_code: Optional[str]) -> bool: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user