Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 374 for models3 (0.05 seconds)

  1. docs/zh-hant/docs/python-types.md

    然後,你一樣會得到完整的編輯器支援:
    
    <img src="/img/python-types/image06.png">
    
    請注意,這表示「`one_person` 是類別 `Person` 的『實例(instance)』」。
    
    並不是「`one_person` 就是名為 `Person` 的『類別(class)』」。
    
    ## Pydantic 模型 { #pydantic-models }
    
    [Pydantic](https://docs.pydantic.dev/) 是一個用來做資料驗證的 Python 程式庫。
    
    你以帶有屬性的類別來宣告資料的「形狀」。
    
    而每個屬性都有其型別。
    
    接著你用一些值建立這個類別的實例,它會驗證這些值、在需要時把它們轉換成適當的型別,然後回給你一個包含所有資料的物件。
    
    你也會對這個產生的物件得到完整的編輯器支援。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  2. fastapi/params.py

    from collections.abc import Callable, Sequence
    from dataclasses import dataclass
    from enum import Enum
    from typing import Annotated, Any, Literal
    
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.openapi.models import Example
    from pydantic import AliasChoices, AliasPath
    from pydantic.fields import FieldInfo
    from typing_extensions import deprecated
    
    from ._compat import (
        Undefined,
    )
    from .datastructures import _Unset
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  3. docs/es/docs/python-types.md

    <img src="/img/python-types/image06.png">
    
    Nota que esto significa "`one_person` es una **instance** de la clase `Person`".
    
    No significa "`one_person` es la **clase** llamada `Person`".
    
    ## Modelos Pydantic { #pydantic-models }
    
    [Pydantic](https://docs.pydantic.dev/) es un paquete de Python para realizar la validación de datos.
    
    Declaras la "forma" de los datos como clases con atributos.
    
    Y cada atributo tiene un tipo.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (1)
  4. docs/pt/docs/python-types.md

    <img src="/img/python-types/image06.png">
    
    Perceba que isso significa que "`one_person` é uma **instância** da classe `Person`".
    
    Isso não significa que "`one_person` é a **classe** chamada `Person`".
    
    ## Modelos Pydantic { #pydantic-models }
    
    [Pydantic](https://docs.pydantic.dev/) é uma biblioteca Python para executar a validação de dados.
    
    Você declara a "forma" dos dados como classes com atributos.
    
    E cada atributo tem um tipo.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         *
         * @return the settings instance
         */
        @Nonnull
        Settings getSettings();
    
        /**
         * Retrieves toolchain models that have been explicitly configured.
         *
         * @return the toolchain models
         */
        @Nonnull
        Collection<ToolchainModel> getToolchains();
    
        /**
         * Retrieves the local repository associated with this session.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jul 03 14:18:26 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  6. docs/ko/docs/tutorial/security/simple-oauth2.md

        full_name = user_dict["full_name"],
        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info | 정보
    
    `**user_dict`에 대한 자세한 설명은 [**추가 모델** 문서](../extra-models.md#about-user-in-dict)를 다시 확인해보세요.
    
    ///
    
    ## 토큰 반환하기 { #return-the-token }
    
    `token` 엔드포인트의 응답은 JSON 객체여야 합니다.
    
    `token_type`이 있어야 합니다. 여기서는 "Bearer" 토큰을 사용하므로 토큰 유형은 "`bearer`"여야 합니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  7. cmd/sftp-server-driver.go

    			minio.PutObjectOptions{DisableContentSha256: true},
    		)
    		return err
    	}
    
    	return NotImplemented{}
    }
    
    type listerAt []os.FileInfo
    
    // Modeled after strings.Reader's ReadAt() implementation
    func (f listerAt) ListAt(ls []os.FileInfo, offset int64) (int, error) {
    	var n int
    	if offset >= int64(len(f)) {
    		return 0, io.EOF
    	}
    	n = copy(ls, f[offset:])
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 10 16:35:49 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/schema-extra-example.md

    # 声明请求示例数据 { #declare-request-example-data }
    
    你可以为你的应用将接收的数据声明示例。
    
    这里有几种实现方式。
    
    ## Pydantic 模型中的额外 JSON Schema 数据 { #extra-json-schema-data-in-pydantic-models }
    
    你可以为一个 Pydantic 模型声明 `examples`,它们会被添加到生成的 JSON Schema 中。
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    这些额外信息会原样添加到该模型输出的 JSON Schema 中,并会在 API 文档中使用。
    
    你可以使用属性 `model_config`,它接收一个 `dict`,详见 [Pydantic 文档:配置](https://docs.pydantic.dev/latest/api/config/)。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  9. fastapi/_compat/v2.py

                field_info=FieldInfo(annotation=model),
                name=model.__name__,
                mode="validation",
            )
            for model in flat_validation_models
        ]
        flat_serialization_model_fields = [
            ModelField(
                field_info=FieldInfo(annotation=model),
                name=model.__name__,
                mode="serialization",
            )
            for model in flat_serialization_models
        ]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  10. docs/fr/docs/index.md

        * Conversion des types Python (`str`, `int`, `float`, `bool`, `list`, etc).
        * Objets `datetime`.
        * Objets `UUID`.
        * Modèles de base de données.
        * ... et bien plus.
    * Documentation API interactive automatique, avec 2 interfaces utilisateur au choix :
        * Swagger UI.
        * ReDoc.
    
    ---
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 23.8K bytes
    - Click Count (0)
Back to Top