Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 261 for yield4 (0.16 sec)

  1. test/typeparam/pairimp.dir/a.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type Pair[F1, F2 any] struct {
    	Field1 F1
    	Field2 F2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 226 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/validation_test.go

    								"field1": {
    									Type: "integer",
    								},
    								"field2": {
    									Type: "integer",
    								},
    							},
    							XValidations: apiextensions.ValidationRules{
    								{
    									Rule: "self.field1 < self.field2",
    								},
    							},
    							Default: jsonPtr(map[string]interface{}{"field1": 1, "field2": 2}),
    						},
    					},
    				},
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. test/rangegen.go

    	if verbose {
    		println("did", "%[3]s", "%[4]s", len(all))
    	}
    }
    `
    
    var mainCode = `
    
    func main() {
    	if verbose {
    		println("main")
    	}
    	%s
    }
    
    func yield2(yield func(int)bool) { _ = yield(1) && yield(2) }
    var slice2 = []int{1,2}
    
    type output struct {
    	ret int
    	trace []any
    }
    
    func (o *output) log(x any) {
    	o.trace = append(o.trace, x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 23:35:19 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/body-fields.md

    !!! tip "Подсказка"
        Обратите внимание, что каждый атрибут модели с типом, значением по умолчанию и `Field` имеет ту же структуру, что и параметр *функции обработки пути* с `Field` вместо `Path`, `Query` и `Body`.
    
    ## Добавление дополнительной информации
    
    Вы можете объявлять дополнительную информацию в `Field`, `Query`, `Body` и т.п. Она будет включена в сгенерированную JSON схему.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/field.go

    package ppc64asm
    
    import (
    	"fmt"
    	"strings"
    )
    
    // A BitField is a bit-field in a 32-bit word.
    // Bits are counted from 0 from the MSB to 31 as the LSB.
    type BitField struct {
    	Offs uint8 // the offset of the left-most bit.
    	Bits uint8 // length in bits.
    	// This instruction word holding this field.
    	// It is always 0 for ISA < 3.1 instructions. It is
    	// in decoding order. (0 == prefix, 1 == suffix on ISA 3.1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/body-fields.md

         &amp; Pydantic `Field` 📨 👐 `FieldInfo` 👍.
    
        `Body` 📨 🎚 🏿 `FieldInfo` 🔗. &amp; 📤 🎏 👆 🔜 👀 ⏪ 👈 🏿 `Body` 🎓.
    
        💭 👈 🕐❔ 👆 🗄 `Query`, `Path`, &amp; 🎏 ⚪️➡️ `fastapi`, 👈 🤙 🔢 👈 📨 🎁 🎓.
    
    !!! tip
        👀 ❔ 🔠 🏷 🔢 ⏮️ 🆎, 🔢 💲 &amp; `Field` ✔️ 🎏 📊 *➡ 🛠️ 🔢* 🔢, ⏮️ `Field` ↩️ `Path`, `Query` &amp; `Body`.
    
    ## 🚮 ➕ ℹ
    
    👆 💪 📣 ➕ ℹ `Field`, `Query`, `Body`, ♒️. &amp; ⚫️ 🔜 🔌 🏗 🎻 🔗.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/body-fields.md

    # Body - Fields
    
    The same way you can declare additional validation and metadata in *path operation function* parameters with `Query`, `Path` and `Body`, you can declare validation and metadata inside of Pydantic models using Pydantic's `Field`.
    
    ## Import `Field`
    
    First, you have to import it:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/body-fields.md

    !!! tip "提示"
    
        注意,模型属性的类型、默认值及 `Field` 的代码结构与*路径操作函数*的参数相同,只不过是用 `Field` 替换了`Path`、`Query`、`Body`。
    
    ## 添加更多信息
    
    `Field`、`Query`、`Body` 等对象里可以声明更多信息,并且 JSON Schema 中也会集成这些信息。
    
    *声明示例*一章中将详细介绍添加更多信息的知识。
    
    ## 小结
    
    Pydantic 的 `Field` 可以为模型属性声明更多校验和元数据。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Apr 01 05:35:27 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/body-fields.md

    ## `Field`のインポート
    
    まず、以下のようにインポートします:
    
    ```Python hl_lines="4"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    !!! warning "注意"
        `Field`は他の全てのもの(`Query`、`Path`、`Body`など)とは違い、`fastapi`からではなく、`pydantic`から直接インポートされていることに注意してください。
    
    ## モデルの属性の宣言
    
    以下のように`Field`をモデルの属性として使用することができます:
    
    ```Python hl_lines="11 12 13 14"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jan 15 15:33:28 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/body-fields.md

    ## Importe `Field`
    
    Primeiro, você tem que importá-lo:
    
    ```Python hl_lines="4"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    !!! warning "Aviso"
        Note que `Field` é importado diretamente do `pydantic`, não do `fastapi` como todo o resto (`Query`, `Path`, `Body`, etc).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 02 15:00:11 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top