Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for ages (0.02 sec)

  1. .pre-commit-config.yaml

            require_serial: true
            language: unsupported
            types: [python]
    
          - id: add-permalinks-pages
            language: unsupported
            name: add-permalinks-pages
            entry: uv run ./scripts/docs.py add-permalinks-pages
            args:
              - --update-existing
            files: ^docs/en/docs/.*\.md$
    
          - id: generate-readme
            language: unsupported
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 11:36:58 UTC 2025
    - 1.8K bytes
    - Viewed (1)
  2. tests/test_union_inherited_body.py

                        "required": ["age"],
                        "type": "object",
                        "properties": {
                            "name": {
                                "title": "Name",
                                "anyOf": [{"type": "string"}, {"type": "null"}],
                            },
                            "age": {"title": "Age", "type": "integer"},
                        },
                    },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. scripts/docs.py

        with path.open("w", encoding="utf-8") as f:
            f.writelines(updated_lines)
    
    
    @app.command()
    def add_permalinks_pages(pages: list[Path], update_existing: bool = False) -> None:
        """
        Add or update header permalinks in specific pages of En docs.
        """
        for md_file in pages:
            add_permalinks_page(md_file, update_existing=update_existing)
    
    
    @app.command()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_sql_databases/test_tutorial001.py

                json={
                    "id": 999,
                    "name": "Dead Pond",
                    "age": 30,
                    "secret_name": "Dive Wilson",
                },
            )
            assert response.status_code == 200, response.text
            assert response.json() == snapshot(
                {"age": 30, "secret_name": "Dive Wilson", "id": 999, "name": "Dead Pond"}
            )
    
            # Read a hero
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 14K bytes
    - Viewed (0)
  5. tests/test_forms_single_model.py

                "username": "Rick",
                "lastname": "Sanchez",
                "age": "70",
                "tags": ["plumbus", "citadel"],
                "with": "something",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "Rick",
            "lastname": "Sanchez",
            "age": 70,
            "tags": ["plumbus", "citadel"],
            "with": "something",
        }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_python_types/test_tutorial012.py

    from docs_src.python_types.tutorial012_py39 import User
    
    
    def test_user():
        user = User(name="John Doe", age=30)
        assert user.name == "John Doe"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 177 bytes
    - Viewed (0)
  7. docs_src/python_types/tutorial003_py39.py

    def get_name_with_age(name: str, age: int):
        name_with_age = name + " is this old: " + age
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 119 bytes
    - Viewed (0)
  8. docs_src/graphql_/tutorial001_py39.py

    import strawberry
    from fastapi import FastAPI
    from strawberry.fastapi import GraphQLRouter
    
    
    @strawberry.type
    class User:
        name: str
        age: int
    
    
    @strawberry.type
    class Query:
        @strawberry.field
        def user(self) -> User:
            return User(name="Patrick", age=100)
    
    
    schema = strawberry.Schema(query=Query)
    
    
    graphql_app = GraphQLRouter(schema)
    
    app = FastAPI()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 424 bytes
    - Viewed (0)
  9. tests/test_multi_body_errors.py

                    "loc": ["body", 0, "age"],
                    "msg": "Input should be greater than 0",
                    "input": -1.0,
                    "ctx": {"gt": 0},
                }
            ]
        }
    
    
    def test_put_incorrect_body_multiple():
        response = client.post("/items/", json=[{"age": "five"}, {"age": "six"}])
        assert response.status_code == 422, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. tests/test_form_default.py

    app = FastAPI()
    
    
    @app.post("/urlencoded")
    async def post_url_encoded(age: Annotated[Optional[int], Form()] = None):
        return age
    
    
    @app.post("/multipart")
    async def post_multi_part(
        age: Annotated[Optional[int], Form()] = None,
        file: Annotated[Optional[bytes], File()] = None,
    ):
        return {"file": file, "age": age}
    
    
    client = TestClient(app)
    
    
    def test_form_default_url_encoded():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 848 bytes
    - Viewed (0)
Back to top