INNER CODE UNIT · Python

_MethodCallable

smagafurov/fastapi-jsonrpc · fastapi_jsonrpc/__init__.py:46

class _MethodCallable(Protocol):
    __name__: str
    __module__: str
    __annotations__: Dict[str, Any]

    def __call__(self, *args: Any, **kwargs: Any) -> Any: ...


_CallableT = TypeVar('_CallableT', bound=_MethodCallable)

try:
    import sentry_sdk
    import sentry_sdk.tracing
    from sentry_sdk.utils import transaction_from_function as sentry_transaction_from_function
except ImportError:
    sentry_sdk = None  # type: ignore[assignment]
    sentry_transaction_from_function = None  # type: ignore[assignment]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…