Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 160 for union_ (0.05 seconds)

  1. docs/zh/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] = []` 默认值为一个空列表:`[]`。
    
    但如果它们并没有被实际存储,你可能希望在结果中省略这些默认值。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *}
    
    ...これは、型アノテーションがPydantic型ではなく、単一の `Response` クラス(またはサブクラス)でもないために失敗します。`Response` と `dict` の間のunion(どちらか)になっているからです。
    
    ### レスポンスモデルを無効化する { #disable-response-model }
    
    上の例を続けると、FastAPIが実行するデフォルトのデータ検証、ドキュメント化、フィルタリングなどを行いたくないこともあるでしょう。
    
    しかし、エディタや型チェッカー(例: mypy)などのツール支援を得るために、関数の戻り値の型アノテーションは残したいかもしれません。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/TreeRangeSet.java

        TreeRangeSet<C> result = create();
        result.addAll(rangeSet);
        return result;
      }
    
      /**
       * Returns a {@code TreeRangeSet} representing the union of the specified ranges.
       *
       * <p>This is the smallest {@code RangeSet} which encloses each of the specified ranges. An
       * element will be contained in this {@code RangeSet} if and only if it is contained in at least
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 32.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

          assertThat(removalNotifications.get("b" + i)).isEqualTo("b" + i);
        }
    
        // Each of the values added to the map should either still be there, or have seen a removal
        // notification.
        assertThat(Sets.union(cache.asMap().keySet(), removalNotifications.keySet()))
            .isEqualTo(expectedKeys);
        assertThat(cache.asMap().keySet()).containsNoneIn(removalNotifications.keySet());
        threadPool.shutdown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  5. 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)
  6. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

          assertThat(removalNotifications.get("b" + i)).isEqualTo("b" + i);
        }
    
        // Each of the values added to the map should either still be there, or have seen a removal
        // notification.
        assertThat(Sets.union(cache.asMap().keySet(), removalNotifications.keySet()))
            .isEqualTo(expectedKeys);
        assertThat(cache.asMap().keySet()).containsNoneIn(removalNotifications.keySet());
        threadPool.shutdown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top