Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for otherwise (0.05 seconds)

  1. fastapi/utils.py

    ) -> Union[DefaultPlaceholder, DefaultType]:
        """
        Pass items or `DefaultPlaceholder`s by descending priority.
    
        The first one to _not_ be a `DefaultPlaceholder` will be returned.
    
        Otherwise, the first item (a `DefaultPlaceholder`) will be returned.
        """
        items = (first_item,) + extra_items
        for item in items:
            if not isinstance(item, DefaultPlaceholder):
                return item
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild.binary-compatibility.gradle

                </p>
                ${writeFilterPreset(project)}
    """.stripIndent()
    
                it.renderer.set(EnrichedReportRenderer.class)
            } as Action
        )
    
    
    }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  3. fastapi/encoders.py

    
    # Adapted from Pydantic v1
    # TODO: pv2 should this return strings instead?
    def decimal_encoder(dec_value: Decimal) -> Union[int, float]:
        """
        Encodes a Decimal as int if there's no exponent, otherwise float
    
        This is useful when we use ConstrainedDecimal to represent Numeric(x,0)
        where an integer (but not int typed) is used. Encoding this as a float
        results in failed round-tripping between encode and parse.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  4. .bazelrc

    # Don't trigger --config=<host platform> when cross-compiling.
    common:android --noenable_platform_specific_config
    common:ios --noenable_platform_specific_config
    
    # Suppress all C++ compiler warnings, otherwise build logs become 10s of MBs.
    common:android --copt=-w
    common:ios --copt=-w
    common:linux --host_copt=-w
    common:macos --copt=-w
    common:windows --copt=/W0
    common:windows --host_copt=/W0
    
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Fri Dec 26 23:20:26 GMT 2025
    - 56.8K bytes
    - Click Count (0)
  5. fastapi/dependencies/utils.py

        if getattr(first_field.field_info, "embed", None):
            return True
        # If it's a Form (or File) field, it has to be a BaseModel (or a union of BaseModels) to be top level
        # otherwise it has to be embedded, so that the key value pair can be extracted
        if (
            isinstance(first_field.field_info, params.Form)
            and not lenient_issubclass(first_field.type_, BaseModel)
    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)
  6. scripts/translate.py

                    "- If parts of the original English content have changed, also change those parts in the translation.",
                    "- If the previous translation violates current instructions, update it.",
                    "- Otherwise, preserve the original translation LINE-BY-LINE, AS-IS.",
                    "Do not:",
                    "- rephrase or rewrite correct lines just to improve the style.",
    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. fastapi/routing.py

                else:
                    response_args: dict[str, Any] = {
                        "background": solved_result.background_tasks
                    }
                    # If status_code was set, use it, otherwise use the default from the
                    # response class, in the case of redirect it's 307
                    current_status_code = (
                        status_code if status_code else solved_result.response.status_code
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 174.6K bytes
    - Click Count (0)
  8. docs/en/docs/release-notes.md

        * Setting `status_code` to `204`, `304`, or any code below `200` (1xx) will remove the body from the response.
        * This fixes an error in Uvicorn that otherwise would be thrown: `RuntimeError: Response content longer than Content-Length`.
        * This removes `fastapi.openapi.constants.STATUS_CODES_WITH_NO_BODY`, it is replaced by a function in utils.
    
    ### Translations
    
    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)
Back to Top