Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 157 for union (0.02 seconds)

  1. docs/es/docs/advanced/advanced-python-types.md

    ## Usar `Union` u `Optional` { #using-union-or-optional }
    
    Si por alguna razón tu código no puede usar `|`, por ejemplo si no está en una anotación de tipos sino en algo como `response_model=`, en lugar de usar la barra vertical (`|`) puedes usar `Union` de `typing`.
    
    Por ejemplo, podrías declarar que algo podría ser un `str` o `None`:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:41:41 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 123); // _infop, retval
            when(mockNdrBuffer.dec_ndr_short()).thenReturn((int) (short) 0); // union discriminant
    
            queryInfoPolicy.decode_out(mockNdrBuffer);
    
            verify(mockInfo).decode(mockNdrBuffer);
            assertEquals(123, queryInfoPolicy.retval);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 60.8K bytes
    - Click Count (0)
  3. docs/ko/docs/tutorial/extra-models.md

    ## `Union` 또는 `anyOf` { #union-or-anyof }
    
    두 가지 이상의 타입을 포함하는 `Union`으로 응답을 선언할 수 있습니다. 이는 응답이 그 중 하나의 타입일 수 있음을 의미합니다.
    
    OpenAPI에서는 이를 `anyOf`로 정의합니다.
    
    이를 위해 표준 Python 타입 힌트인 [`typing.Union`](https://docs.python.org/3/library/typing.html#typing.Union)을 사용할 수 있습니다:
    
    /// note
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/Network.java

      // Element-level accessors
      //
    
      /**
       * Returns a live view of the edges whose {@link #incidentNodes(Object) incident nodes} in this
       * network include {@code node}.
       *
       * <p>This is equal to the union of {@link #inEdges(Object)} and {@link #outEdges(Object)}.
       *
       * <p>If {@code node} is removed from the network after this method is called, the {@code Set}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 17.6K bytes
    - Click Count (0)
  5. gradle/wrapper/gradle-wrapper.jar

    conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management...
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 04 20:34:40 GMT 2026
    - 47.8K bytes
    - Click Count (1)
  6. docs/ja/docs/tutorial/extra-models.md

    ## `Union` または `anyOf` { #union-or-anyof }
    
    レスポンスを2つ以上の型の`Union`として宣言できます。つまり、そのレスポンスはそれらのいずれかになります。
    
    OpenAPIでは`anyOf`で定義されます。
    
    そのためには、標準的なPythonの型ヒント[`typing.Union`](https://docs.python.org/3/library/typing.html#typing.Union)を使用します:
    
    /// note | 備考
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  7. src/archive/tar/common.go

    	if wantFormat := h.Format; wantFormat != FormatUnknown {
    		if wantFormat.has(FormatPAX) && !preferPAX {
    			wantFormat.mayBe(FormatUSTAR) // PAX implies USTAR allowed too
    		}
    		format.mayOnlyBe(wantFormat) // Set union of formats allowed and format wanted
    	}
    	if format == FormatUnknown {
    		switch h.Format {
    		case FormatUSTAR:
    			err = headerError{"Format specifies USTAR", whyNoUSTAR, whyOnlyPAX, whyOnlyGNU}
    		case FormatPAX:
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Oct 07 19:46:36 GMT 2025
    - 24.5K bytes
    - Click Count (0)
  8. tests/create_test.go

    	jt := JoinTable{UserID: 1, FriendID: 2}
    	err := DB.Create(&jt).Error
    	if err != nil {
    		t.Errorf("No error should happen when create a record without a GORM primary key. But in the database this primary key exists and is the union of 2 or more fields\n But got: %s", err)
    	}
    }
    
    func TestSelectWithCreate(t *testing.T) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 09:55:20 GMT 2025
    - 26.8K bytes
    - Click Count (0)
  9. docs/es/docs/python-types.md

    #### Union { #union }
    
    Puedes declarar que una variable puede ser cualquiera de **varios tipos**, por ejemplo, un `int` o un `str`.
    
    Para definirlo usas la <dfn title='también llamado "operador OR a nivel de bits", pero ese significado no es relevante aquí'>barra vertical (`|`)</dfn> para separar ambos tipos.
    
    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)
  10. docs/zh-hant/docs/tutorial/response-model.md

    ## 回應模型編碼參數 { #response-model-encoding-parameters }
    
    你的回應模型可能有預設值,例如:
    
    {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *}
    
    * `description: Union[str, None] = None`(或在 Python 3.10 中的 `str | None = None`)預設為 `None`。
    * `tax: float = 10.5` 預設為 `10.5`。
    * `tags: List[str] = []` 預設為空的 list:`[]`。
    
    但如果這些值其實沒有被儲存,你可能想要在結果中省略它們。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
Back to Top