Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-07-17 15:15:15 +07:00
parent 93d0f304ac
commit e34f436ea1
3 changed files with 7 additions and 1 deletions

View File

@@ -321,6 +321,7 @@ class BaseModel(metaclass=MetaModel):
def get_field_translations(
self, field_name: str, langs: list[str] | None = ...
) -> tuple[list[dict[str, Any]], dict[str, Any]]: ...
def _get_base_lang(self) -> str: ...
def _read_format(
self, fnames: Collection[str], load: str = ...
) -> list[dict[str, Any]]: ...

View File

@@ -2,6 +2,7 @@ import collections
from concurrent.futures import Future
from itertools import count
from typing import Any, Callable, Generator, Generic, Iterator, Mapping, Match, TypeVar
from unittest.mock import Mock
from xmlrpc import client as xmlrpclib
import requests
@@ -99,6 +100,7 @@ class BaseCase(case.TestCase, metaclass=MetaCase):
def assertHTMLEqual(self, original: str, expected: str) -> None: ...
profile_session: str
def profile(self, description: str = ..., **kwargs) -> Profiler: ...
def patch_requests(self) -> Mock: ...
savepoint_seq: count[int]

View File

@@ -297,7 +297,10 @@ class DotDict(dict):
def __getattr__(self, attrib): ...
def get_diff(
data_from: tuple[str, str], data_to: tuple[str, str], custom_style: bool = ...
data_from: tuple[str, str],
data_to: tuple[str, str],
custom_style: bool = ...,
dark_color_scheme: bool = ...,
) -> str: ...
def hmac(env: Environment, scope, message, hash_function=...) -> str: ...