Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Include (0.48 sec)

  1. tests/test_jsonable_encoder.py

        assert jsonable_encoder(pet) == {"name": "Firulais", "owner": {"name": "Foo"}}
        assert jsonable_encoder(pet, include={"name"}) == {"name": "Firulais"}
        assert jsonable_encoder(pet, exclude={"owner"}) == {"name": "Firulais"}
        assert jsonable_encoder(pet, include={}) == {}
        assert jsonable_encoder(pet, exclude={}) == {
            "name": "Firulais",
            "owner": {"name": "Foo"},
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. fastapi/encoders.py

        if include is not None and not isinstance(include, (set, dict)):
            include = set(include)
        if exclude is not None and not isinstance(exclude, (set, dict)):
            exclude = set(exclude)
        if isinstance(obj, BaseModel):
            obj_dict = obj.model_dump(
                mode="json",
                include=include,
                exclude=exclude,
                by_alias=by_alias,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. fastapi/routing.py

                    errors=errors,
                    body=response_content,
                    endpoint_ctx=ctx,
                )
    
            return field.serialize(
                value,
                include=include,
                exclude=exclude,
                by_alias=by_alias,
                exclude_unset=exclude_unset,
                exclude_defaults=exclude_defaults,
                exclude_none=exclude_none,
            )
    
        else:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  4. .github/workflows/test.yml

        - cron: "0 0 * * 1"
    
    env:
      UV_SYSTEM_PYTHON: 1
    
    jobs:
      test:
        strategy:
          matrix:
            os: [ windows-latest, macos-latest ]
            python-version: [ "3.14" ]
            include:
              - os: ubuntu-latest
                python-version: "3.9"
                coverage: coverage
              - os: macos-latest
                python-version: "3.10"
                coverage: coverage
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 08:53:59 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. fastapi/param_functions.py

                """
            ),
        ] = None,
        include_in_schema: Annotated[
            bool,
            Doc(
                """
                To include (or not) this parameter field in the generated OpenAPI.
                You probably don't need it, but it's available.
    
                This affects the generated OpenAPI (e.g. visible at `/docs`).
                """
            ),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  6. fastapi/_compat/v2.py

            # self._type_adapter.validate_python(value)
            return self._type_adapter.dump_python(
                value,
                mode=mode,
                include=include,
                exclude=exclude,
                by_alias=by_alias,
                exclude_unset=exclude_unset,
                exclude_defaults=exclude_defaults,
                exclude_none=exclude_none,
            )
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. .bazelrc

    common:nvcc_clang --config=cuda_nvcc
    
    # Debug config
    common:dbg -c dbg
    # Only include debug info for files under tensorflow/, excluding kernels, to
    # reduce the size of the debug info in the binary. This is because if the debug
    # sections in the ELF binary are too large, errors can occur. See
    # https://github.com/tensorflow/tensorflow/issues/48919.
    # Users can still include debug info for a specific kernel, e.g. with:
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Fri Dec 26 23:20:26 UTC 2025
    - 56.8K bytes
    - Viewed (0)
  8. docs/zh-hant/llm-prompt.md

    3. Use the following preferred translations when they apply in documentation prose:
    
    - request (HTTP): 請求
    - response (HTTP): 回應
    - path operation: 路徑操作
    - path operation function: 路徑操作函式
    
    The translation can optionally include the original English text only in the first occurrence of each page (e.g. "路徑操作 (path operation)") if the translation is hard to be comprehended by most of the Chinese readers.
    
    ### `///` admonitions
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:49:46 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild.binary-compatibility.gradle

            currentUpgradedPropertiesFile.get().asFile,
            baselineUpgradedPropertiesFile.get().asFile,
            {
                it.includedClasses = toPatterns(PublicApi.includes + PublicKotlinDslApi.includes)
                it.excludedClasses = toPatterns(PublicApi.excludes + PublicKotlinDslApi.excludes)
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/dataclasses.md

    You can combine `dataclasses` with other type annotations in many different combinations to form complex data structures.
    
    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)
Back to top