lab2
Application / Линт, типы и собственные тесты (pull_request) Canceled after 0s
Application / Стенд Compose, smoke, рестарт и отказы зависимостей (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Artyom
2026-10-30 12:32:42 +03:00
parent 65003b6119
commit 6d8b76b447
222 changed files with 19685 additions and 18 deletions
+23
View File
@@ -0,0 +1,23 @@
from datetime import datetime, timedelta
from typing import Any
class NullLogger:
__slots__ = ()
def info(self, event: str, /, **fields: Any) -> None: ...
def warning(self, event: str, /, **fields: Any) -> None: ...
def error(self, event: str, /, **fields: Any) -> None: ...
class FrozenClock:
__slots__ = ("_current",)
def __init__(self, start: datetime) -> None:
self._current = start
def now(self) -> datetime:
self._current += timedelta(microseconds=1)
return self._current