Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for checks (0.15 sec)

  1. fastapi/dependencies/utils.py

                values[field.name] = v_
        return values, errors
    
    
    def is_union_of_base_models(field_type: Any) -> bool:
        """Check if field type is a Union where all members are BaseModel subclasses."""
        from fastapi.types import UnionType
    
        origin = get_origin(field_type)
    
        # Check if it's a Union type (covers both typing.Union and types.UnionType in Python 3.10+)
        if origin is not Union and origin is not UnionType:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  2. scripts/translate.py

            print("Repository is clean, no changes to commit")
            return
        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
        branch_name = "translate"
        if language:
            branch_name += f"-{language}"
        if command:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  3. docs/en/docs/index.md

    You can read more about it in the <a href="https://fastapi.tiangolo.com/fastapi-cli/" target="_blank">FastAPI CLI docs</a>.
    
    </details>
    
    ### Check it { #check-it }
    
    Open your browser at <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>.
    
    You will see the JSON response as:
    
    ```JSON
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  4. README.md

    * Check if there is an optional query parameter named `q` (as in `http://127.0.0.1:8000/items/foo?q=somequery`) for `GET` requests.
        * As the `q` parameter is declared with `= None`, it is optional.
        * Without the `None` it would be required (as is the body in the case with `PUT`).
    * For `PUT` requests to `/items/{item_id}`, read the body as JSON:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_dependencies/test_tutorial011.py

        "path,expected_status,expected_response",
        [
            (
                "/query-checker/",
                200,
                {"fixed_content_in_query": False},
            ),
            (
                "/query-checker/?q=qwerty",
                200,
                {"fixed_content_in_query": False},
            ),
            (
                "/query-checker/?q=foobar",
                200,
                {"fixed_content_in_query": True},
            ),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. .pre-commit-config.yaml

        rev: v6.0.0
        hooks:
          - id: check-added-large-files
            args: ['--maxkb=750']
          - id: check-toml
          - id: check-yaml
            args:
            - --unsafe
          - id: end-of-file-fixer
          - id: trailing-whitespace
    
      - repo: local
        hooks:
          - id: local-ruff-check
            name: ruff check
            entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 11:36:58 UTC 2025
    - 1.8K bytes
    - Viewed (1)
  7. tests/test_infer_param_optionality.py

    
    client = TestClient(app)
    
    
    def test_get_users():
        """Check that /users returns expected data"""
        response = client.get("/users")
        assert response.status_code == 200, response.text
        assert response.json() == [{"user_id": "u1"}, {"user_id": "u2"}]
    
    
    def test_get_user():
        """Check that /users/{user_id} returns expected data"""
        response = client.get("/users/abc123")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/dataclasses.md

    Check the in-code annotation tips above to see more specific details.
    
    ## Learn More { #learn-more }
    
    You can also combine `dataclasses` with other Pydantic models, inherit from them, include them in your own models, etc.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

    * 🔥 Remove dangling extra condiitonal no longer needed. PR [#14435](https://github.com/fastapi/fastapi/pull/14435) by [@tiangolo](https://github.com/tiangolo).
    * ♻️ Refactor internals, update `is_coroutine` check to reuse internal supported variants (unwrap, check class). PR [#14434](https://github.com/fastapi/fastapi/pull/14434) by [@tiangolo](https://github.com/tiangolo).
    
    ### Translations
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
  10. docs/de/llm-prompt.md

    * «/// check»: «/// check | Testen»
    * «/// danger»: «/// danger | Gefahr»
    * «/// info»: «/// info | Info»
    * «/// note | Technical Details»: «/// note | Technische Details»
    * «/// note»: «/// note | Hinweis»
    * «/// tip»: «/// tip | Tipp»
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top