Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-11-05 11:19:17 +07:00
parent c1dbb29171
commit a881835e26
2 changed files with 17 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any
from typing import Generator
LOG_NOTSET: str
LOG_DEBUG: str
@@ -7,9 +7,9 @@ LOG_WARNING: str
LOG_ERROR: str
LOG_CRITICAL: str
def get_encodings(hint_encoding: str = ...) -> None: ...
def get_encodings(hint_encoding: str = ...) -> Generator[str, None, None]: ...
text_type: Any
text_type: type[str]
def ustr(value: Any, hint_encoding: str = ..., errors: str = ...): ...
def exception_to_unicode(e: Any): ...
def ustr(value, hint_encoding: str = ..., errors: str = ...) -> str: ...
def exception_to_unicode(e: BaseException) -> str: ...

View File

@@ -1,16 +1,14 @@
from typing import Any
RELEASE_LEVELS: Any
ALPHA: Any
BETA: Any
RELEASE_CANDIDATE: Any
FINAL: Any
RELEASE_LEVELS_DISPLAY: Any
version_info: Any
version: Any
series: Any
serie: Any
major_version: Any
RELEASE_LEVELS: list[str]
ALPHA: str
BETA: str
RELEASE_CANDIDATE: str
FINAL: str
RELEASE_LEVELS_DISPLAY: dict[str, str]
version_info: tuple
version: str
series: str
serie: str
major_version: str
product_name: str
description: str
long_desc: str
@@ -19,4 +17,4 @@ url: str
author: str
author_email: str
license: str
nt_service_name: Any
nt_service_name: str