Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 25 for origin (0.04 seconds)

  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
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 6.7K bytes
    - Click Count (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»
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 09:39:53 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. 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:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 37.6K bytes
    - Click Count (3)
  4. 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)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  5. 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
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 51.9K bytes
    - Click Count (0)
  6. scripts/translate.py

    
    ### Your task
    
    Translate an English text – the original content – to a target language.
    
    The original content is written in Markdown, write the translation in Markdown as well.
    
    The original content will be surrounded by triple percentage signs («%%%»). Do not include the triple percentage signs in the translation.
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:05:53 GMT 2025
    - 34.1K bytes
    - Click Count (0)
  7. 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).
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
  8. build-logic-commons/build.gradle.kts

    /*
     * Copyright 2026 the original author or authors.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 04:30:54 GMT 2025
    - 800 bytes
    - Click Count (0)
  9. .teamcity/src/test/kotlin/VersionedSettingsBranchTest.kt

    import org.junit.jupiter.params.provider.CsvSource
    import org.junit.jupiter.params.provider.ValueSource
    import promotion.determineNightlyPromotionTriggerHour
    
    /*
     * Copyright 2023 the original author or authors.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 29 08:57:18 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  10. build-logic-settings/build.gradle.kts

    /*
     * Copyright 2024 the original author or authors.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 04:30:54 GMT 2025
    - 785 bytes
    - Click Count (0)
Back to Top