This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import anyio | |
from fastapi import Depends, FastAPI | |
app = FastAPI() | |
def sync_dependency_one() -> str: | |
time.sleep(0.00000001) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import hmac | |
import json | |
from dataclasses import dataclass | |
from operator import itemgetter | |
from typing import Any | |
from urllib.parse import parse_qsl | |
@dataclass(eq=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ssl | |
from types import TracebackType | |
from typing import Any, Type | |
import certifi | |
from aiohttp import ClientSession, TCPConnector, ClientTimeout, ClientResponse | |
from aiohttp.typedefs import StrOrURL | |
from aiohttp import ClientResponseError | |
Headers = dict[str, str] | None |