Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Origins (0.04 sec)

  1. fastapi/_compat/shared.py

            return True
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            for arg in get_args(annotation):
                if lenient_issubclass(arg, UploadFile):
                    return True
        return False
    
    
    def is_bytes_sequence_annotation(annotation: Any) -> bool:
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            at_least_one = False
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. docs/de/llm-prompt.md

    * «the locking»: «das Locking»
    * «the mobile application»: «die Mobile-Anwendung»
    * «the model object»: «das Modellobjekt»
    * «the mounting»: «das Mounten»
    * «mounted»: «gemountet»
    * «the origin»: «das Origin»
    * «the override»: «Die Überschreibung»
    * «the parameter»: «der Parameter»
    * «the parameters» (plural): «die Parameter»
    * «the function parameter»: «der Funktionsparameter»
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. .github/workflows/pre-commit.yml

          - name: Install Dependencies
            run: |
              uv venv
              uv pip install -r requirements.txt
          - name: Run prek - pre-commit
            id: precommit
            run: uvx prek run --from-ref origin/${GITHUB_BASE_REF} --to-ref HEAD --show-diff-on-failure
            continue-on-error: true
          - name: Commit and push changes
            if: env.HAS_SECRETS == 'true'
            run: |
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 23 11:17:16 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. fastapi/dependencies/utils.py

        """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:
            return False
    
        union_args = get_args(field_type)
    
        for arg in union_args:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  5. fastapi/_compat/v2.py

        return known_models
    
    
    def get_flat_models_from_annotation(
        annotation: Any, known_models: TypeModelSet
    ) -> TypeModelSet:
        origin = get_origin(annotation)
        if origin is not None:
            for arg in get_args(annotation):
                if lenient_issubclass(arg, (BaseModel, Enum)) and arg not in known_models:
                    known_models.add(arg)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  6. tests/test_application.py

        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "swagger-ui-dist" in response.text
        assert (
            "oauth2RedirectUrl: window.location.origin + '/docs/oauth2-redirect'"
            in response.text
        )
    
    
    def test_swagger_ui_oauth2_redirect():
        response = client.get("/docs/oauth2-redirect")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 51.9K bytes
    - Viewed (0)
  7. scripts/translate.py

        if command:
            message += f" ({command})"
        subprocess.run(["git", "commit", "-m", message], check=True)
        print("Pushing branch")
        subprocess.run(["git", "push", "origin", branch_name], check=True)
        print("Creating PR")
        g = Github(github_token)
        gh_repo = g.get_repo(github_repository)
        body = (
            message
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    * 🌐 Add Korean translation for Tutorial - First Steps. PR [#2323](https://github.com/tiangolo/fastapi/pull/2323) by [@hard-coders](https://github.com/hard-coders).
    * 🌐 Add Chinese translation for Tutorial - CORS (Cross-Origin Resource Sharing). PR [#2540](https://github.com/tiangolo/fastapi/pull/2540) by [@blt232018](https://github.com/blt232018).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top