mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import collections
|
import collections
|
||||||
import logging
|
import logging
|
||||||
import unittest
|
import unittest
|
||||||
|
from contextlib import contextmanager
|
||||||
from itertools import count
|
from itertools import count
|
||||||
from re import Pattern
|
from re import Pattern
|
||||||
from typing import Any, Callable, Generator, Generic, Iterator, Mapping, Match, TypeVar
|
from typing import Any, Callable, Generator, Generic, Iterator, Mapping, Match, TypeVar
|
||||||
@@ -74,12 +75,15 @@ class BaseCase(TreeCase):
|
|||||||
def ref(self, xid: str) -> int: ...
|
def ref(self, xid: str) -> int: ...
|
||||||
def browse_ref(self, xid: str) -> BaseModel | None: ...
|
def browse_ref(self, xid: str) -> BaseModel | None: ...
|
||||||
def with_user(self, login: str) -> None: ...
|
def with_user(self, login: str) -> None: ...
|
||||||
|
@contextmanager
|
||||||
def assertRaises(
|
def assertRaises(
|
||||||
self, exception, func: Any | None = ..., *args, **kwargs
|
self, exception, func: Any | None = ..., *args, **kwargs
|
||||||
) -> Generator[Any, None, None] | None: ...
|
) -> Generator[Any, None, None] | None: ...
|
||||||
|
@contextmanager
|
||||||
def assertQueries(
|
def assertQueries(
|
||||||
self, expected, flush: bool = ...
|
self, expected, flush: bool = ...
|
||||||
) -> Generator[list, None, None]: ...
|
) -> Generator[list, None, None]: ...
|
||||||
|
@contextmanager
|
||||||
def assertQueryCount(
|
def assertQueryCount(
|
||||||
self, default: int = ..., flush: bool = ..., **counters
|
self, default: int = ..., flush: bool = ..., **counters
|
||||||
) -> Generator[None, None, None]: ...
|
) -> Generator[None, None, None]: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user