Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for top (0.11 sec)

  1. .github/actions/people/app/main.py

            "three_months_experts": three_months_experts,
            "six_months_experts": six_months_experts,
            "one_year_experts": one_year_experts,
            "top_contributors": top_contributors,
            "top_reviewers": top_reviewers,
            "top_translations_reviewers": top_translations_reviewers,
        }
        github_sponsors = {
            "sponsors": sponsors,
        }
        # For local development
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  2. tests/test_generate_unique_id_function.py

        return f"baz_{route.name}"
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class Message(BaseModel):
        title: str
        description: str
    
    
    def test_top_level_generate_unique_id():
        app = FastAPI(generate_unique_id_function=custom_generate_unique_id)
        router = APIRouter()
    
        @app.post("/", response_model=List[Item], responses={404: {"model": List[Message]}})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 15:10:26 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  3. fastapi/routing.py

                    [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