Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DecoratedCallable (0.14 sec)

  1. fastapi/types.py

    import types
    from enum import Enum
    from typing import Any, Callable, Dict, Set, Type, TypeVar, Union
    
    from pydantic import BaseModel
    
    DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
    UnionType = getattr(types, "UnionType", Union)
    ModelNameMap = Dict[Union[Type[BaseModel], Type[Enum]], str]
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 12 00:29:03 UTC 2023
    - 383 bytes
    - Viewed (0)
  2. fastapi/routing.py

            path: str,
            methods: Optional[List[str]] = None,
            name: Optional[str] = None,
            include_in_schema: bool = True,
        ) -> Callable[[DecoratedCallable], DecoratedCallable]:
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_route(
                    path,
                    func,
                    methods=methods,
                    name=name,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  3. fastapi/applications.py

            generate_unique_id_function: Callable[[routing.APIRoute], str] = Default(
                generate_unique_id
            ),
        ) -> Callable[[DecoratedCallable], DecoratedCallable]:
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.router.add_api_route(
                    path,
                    func,
                    response_model=response_model,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
Back to top