mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Upgrade black version (#7089)
This commit is contained in:
@@ -44,9 +44,11 @@ else:
|
||||
# this is generic over the logging watcher, but in lower versions
|
||||
# the watcher is hard-coded.
|
||||
_L = TypeVar("_L")
|
||||
|
||||
class _LoggingWatcher(NamedTuple):
|
||||
records: list[logging.LogRecord]
|
||||
output: list[str]
|
||||
|
||||
class _AssertLogsContext(_BaseTestCaseContext, Generic[_L]):
|
||||
LOGGING_FORMAT: ClassVar[str]
|
||||
test_case: TestCase
|
||||
@@ -170,6 +172,7 @@ class TestCase:
|
||||
def assertNoLogs(
|
||||
self, logger: str | logging.Logger | None = ..., level: int | str | None = ...
|
||||
) -> _AssertLogsContext[None]: ...
|
||||
|
||||
@overload
|
||||
def assertAlmostEqual(
|
||||
self, first: float, second: float, places: int | None = ..., msg: Any = ..., delta: float | None = ...
|
||||
@@ -219,12 +222,14 @@ class TestCase:
|
||||
def addCleanup(self, __function: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None: ...
|
||||
else:
|
||||
def addCleanup(self, function: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None: ...
|
||||
|
||||
def doCleanups(self) -> None: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@classmethod
|
||||
def addClassCleanup(cls, __function: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None: ...
|
||||
@classmethod
|
||||
def doClassCleanups(cls) -> None: ...
|
||||
|
||||
def _formatMessage(self, msg: str | None, standardMsg: str) -> str: ... # undocumented
|
||||
def _getAssertEqualityFunc(self, first: Any, second: Any) -> Callable[..., None]: ... # undocumented
|
||||
if sys.version_info < (3, 11):
|
||||
|
||||
Reference in New Issue
Block a user