Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-12-18 11:50:35 +07:00
parent f807afce2d
commit 5dddaa91c6

View File

@@ -4,12 +4,13 @@ import sys
import unittest import unittest
from concurrent.futures import Future from concurrent.futures import Future
from re import Pattern from re import Pattern
from types import TracebackType
from itertools import count from itertools import count
from subprocess import Popen from subprocess import Popen
from threading import Thread from threading import Thread
from typing import Any, Callable, Generator, Generic, Iterator, Mapping, Match, TypeVar from typing import Any, Callable, Generator, Generic, Iterator, Mapping, Match, TypeVar
from unittest import TestSuite from unittest import TestCase, TestSuite
from xmlrpc import client as xmlrpclib from xmlrpc import client as xmlrpclib
import requests import requests
@@ -73,6 +74,7 @@ class MetaCase(type):
def _normalize_arch_for_assert(arch_string: str, parser_method: str = ...) -> str: ... def _normalize_arch_for_assert(arch_string: str, parser_method: str = ...) -> str: ...
class BaseCase(unittest.TestCase, metaclass=MetaCase): class BaseCase(unittest.TestCase, metaclass=MetaCase):
_python_version: tuple
_class_cleanups: list _class_cleanups: list
tearDown_exceptions: list tearDown_exceptions: list
registry: Registry registry: Registry
@@ -115,7 +117,15 @@ class BaseCase(unittest.TestCase, metaclass=MetaCase):
def assertXMLEqual(self, original: str, expected: str) -> None: ... def assertXMLEqual(self, original: str, expected: str) -> None: ...
def assertHTMLEqual(self, original: str, expected: str) -> None: ... def assertHTMLEqual(self, original: str, expected: str) -> None: ...
profile_session: str profile_session: str
def profile(self, **kwargs) -> Profiler: ... def profile(self, description: str = ..., **kwargs) -> Profiler: ...
def _callSetUp(self) -> None: ...
class _ErrorCatcher(list):
__slots__ = ['test']
test: TestCase
def __init__(self, test: TestCase) -> None: ...
def append(self, error) -> None: ...
def _complete_traceback(self, initial_tb: TracebackType) -> TracebackType: ...
savepoint_seq: count[int] savepoint_seq: count[int]