Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for op_type (0.17 sec)

  1. fastapi/applications.py

    from starlette.routing import BaseRoute
    from starlette.types import ASGIApp, Lifespan, Receive, Scope, Send
    from typing_extensions import Annotated, Doc, deprecated
    
    AppType = TypeVar("AppType", bound="FastAPI")
    
    
    class FastAPI(Starlette):
        """
        `FastAPI` app class, the main entrypoint to use FastAPI.
    
        Read more in the
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. fastapi/routing.py

                    Read more in the
                    [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
                    """
                ),
            ] = None,
            # the generic to Lifespan[AppType] is the type of the top level application
            # which the router cannot know statically, so we use typing.Any
            lifespan: Annotated[
                Optional[Lifespan[Any]],
                Doc(
                    """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top