first commit

This commit is contained in:
2026-06-23 09:13:51 +03:00
commit f6c7db328f
103 changed files with 1618 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from collections.abc import Callable
from typing import TypeVar
from fastapi import HTTPException, status
T = TypeVar("T")
def as_501(call: Callable[[], T]) -> T:
try:
return call()
except NotImplementedError as exc:
raise HTTPException(
status_code=status.HTTP_501_NOT_IMPLEMENTED,
detail=str(exc),
) from exc