This file contains hidden or 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 asyncio | |
| import contextlib | |
| import inspect | |
| from inspect import Parameter, Signature | |
| from dataclasses import dataclass | |
| from contextlib import AsyncExitStack, AbstractContextManager, AbstractAsyncContextManager | |
| from typing import Callable, ParamSpec, TypeVar | |
| __all__ = "Depends", "inject_and_run" |
This file contains hidden or 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 unittest.mock | |
| from fastapi import FastAPI as _FastAPI, APIRouter as _APIRouter, routing | |
| __all__ = "FastAPI", "APIRouter" | |
| class APIRouter(_APIRouter): | |
| def include_router(self, router, **kwargs) -> None: | |
| prefix = kwargs.get("prefix", "") |
This file contains hidden or 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 akka.util.ByteString | |
| import akka.stream._ | |
| import FanInShape.Name | |
| import FanInShape.Init | |
| class BinaryComparatorPorts(n: Int, _init: Init[Boolean] = Name("BinaryComparator")) extends UniformFanInShape[ByteString, Boolean](n, _init) { | |
| // comparison target; other ports are used for possible duplicates | |
| val src = newInlet[ByteString]("src") | |
| protected override def construct(init: Init[Boolean]) = new BinaryComparatorPorts(n, init) |
NewerOlder