Search Options

Results per page
Sort
Preferred Languages
Advance

Results 911 - 920 of 1,076 for Fstr (0.03 sec)

  1. docs/es/docs/tutorial/path-params-numeric-validations.md

    /// tip | Consejo
    
    Esto probablemente no es tan importante o necesario si usas `Annotated`.
    
    ///
    
    Supongamos que quieres declarar el parámetro de query `q` como un `str` requerido.
    
    Y no necesitas declarar nada más para ese parámetro, así que realmente no necesitas usar `Query`.
    
    Pero aún necesitas usar `Path` para el parámetro de path `item_id`. Y no quieres usar `Annotated` por alguna razón.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/path-params-numeric-validations.md

    /// tip | Tipp
    
    Das ist wahrscheinlich nicht so wichtig oder notwendig, wenn Sie `Annotated` verwenden.
    
    ///
    
    Angenommen, Sie möchten den Query-Parameter `q` als erforderlichen `str` deklarieren.
    
    Und Sie müssen sonst nichts anderes für diesen Parameter deklarieren, Sie brauchen also `Query` nicht wirklich.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

        @Test
        public void testSubstitution() throws IOException {
            String str = "port = 4141" + LINE_SEPARATOR + "host = localhost"
                    + LINE_SEPARATOR + "url = https://${host}:${port}/service"
                    + LINE_SEPARATOR;
            MavenProperties properties = new MavenProperties();
            properties.load(new StringReader(str));
            properties.put("url", "https://localhost:4141/service");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/endtoend_test.go

    		if len(f) > 0 && strings.Contains(printed, "(PC)") {
    			index := len(f) - 1
    			suf := "(PC)"
    			for !strings.HasSuffix(f[index], suf) {
    				index--
    				suf = "(PC),"
    			}
    			str := f[index]
    			n, err := strconv.Atoi(str[:len(str)-len(suf)])
    			if err == nil {
    				f[index] = fmt.Sprintf("%d%s", seq+n, suf)
    			}
    		}
    
    		if len(f) == 1 {
    			printed = f[0]
    		} else {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 18:45:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. docs/ja/docs/features.md

    型を使用した標準的なPythonを記述します:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    これは以下のように用いられます:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. docs/ja/docs/advanced/custom-response.md

    ///
    
    ### `Response`
    
    メインの `Response` クラスで、他の全てのレスポンスはこれを継承しています。
    
    直接返すことができます。
    
    以下のパラメータを受け付けます。
    
    * `content` - `str` か `bytes`。
    * `status_code` - `int` のHTTPステータスコード。
    * `headers` - 文字列の `dict` 。
    * `media_type` - メディアタイプを示す `str` 。例えば `"text/html"` 。
    
    FastAPI (実際にはStarlette) は自動的にContent-Lengthヘッダーを含みます。また、media_typeに基づいたContent-Typeヘッダーを含み、テキストタイプのためにcharsetを追加します。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. docs/ko/docs/advanced/custom-response.md

    ///
    
    ### `Response`
    
    기본 `Response` 클래스는 다른 모든 응답 클래스의 부모 클래스 입니다.
    
    이 클래스를 직접 반환할 수 있습니다.
    
    다음 매개변수를 받을 수 있습니다:
    
    * `content` - `str` 또는 `bytes`.
    * `status_code` - HTTP 상태코드를 나타내는  `int`.
    * `headers` - 문자열로 이루어진 `dict`.
    * `media_type` - 미디어 타입을 나타내는 `str` 예: `"text/html"`.
    
    FastAPI (실제로는 Starlette)가 자동으로 `Content-Length` 헤더를 포함시킵니다. 또한 `media_type`에 기반하여 `Content-Type` 헤더를 포함하며, 텍스트 타입의 경우 문자 집합을 추가 합니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Feb 15 11:21:20 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    Möglicherweise stellen Sie fest, dass Sie zum Erstellen einer Instanz einer Python-Klasse die gleiche Syntax verwenden.
    
    Zum Beispiel:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    In diesem Fall ist `fluffy` eine Instanz der Klasse `Cat`.
    
    Und um `fluffy` zu erzeugen, rufen Sie `Cat` auf.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/path-params-numeric-validations.md

    /// note
    
    路径参数总是必需的,因为它必须是路径的一部分。
    
    所以,你应该在声明时使用 `...` 将其标记为必需参数。
    
    然而,即使你使用 `None` 声明路径参数或设置一个其他默认值也不会有任何影响,它依然会是必需参数。
    
    ///
    
    ## 按需对参数排序
    
    假设你想要声明一个必需的 `str` 类型查询参数 `q`。
    
    而且你不需要为该参数声明任何其他内容,所以实际上你并不需要使用 `Query`。
    
    但是你仍然需要使用 `Path` 来声明路径参数 `item_id`。
    
    如果你将带有「默认值」的参数放在没有「默认值」的参数之前,Python 将会报错。
    
    但是你可以对其重新排序,并将不带默认值的值(查询参数 `q`)放到最前面。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. tests/embedded_struct_test.go

    }
    
    func (c *Content) Scan(src interface{}) error {
    	var value Content
    	str, ok := src.(string)
    	if !ok {
    		byt, ok := src.([]byte)
    		if !ok {
    			return errors.New("Embedded.Scan byte assertion failed")
    		}
    		if err := json.Unmarshal(byt, &value); err != nil {
    			return err
    		}
    	} else {
    		if err := json.Unmarshal([]byte(str), &value); err != nil {
    			return err
    		}
    	}
    
    	*c = value
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top