Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for listitem (0.05 seconds)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDescriptionRenderer.java

            list.appendChild(segtitle);
            segtitle.appendChild(document.createTextNode("API Documentation"));
            Element listItem = document.createElement("seglistitem");
            list.appendChild(listItem);
            Element seg = document.createElement("seg");
            listItem.appendChild(seg);
            Element apilink = document.createElement("apilink");
            seg.appendChild(apilink);
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.1K bytes
    - Click Count (0)
  2. tests/test_union_body_discriminator.py

    def test_discriminator_pydantic_v2() -> None:
        from pydantic import Tag
    
        app = FastAPI()
    
        class FirstItem(BaseModel):
            value: Literal["first"]
            price: int
    
        class OtherItem(BaseModel):
            value: Literal["other"]
            price: float
    
        Item = Annotated[
            Union[Annotated[FirstItem, Tag("first")], Annotated[OtherItem, Tag("other")]],
            Field(discriminator="value"),
        ]
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. internal/store/batch_test.go

    	}
    
    	var limit uint32 = 100
    
    	batch := NewBatch[TestItem](BatchConfig[TestItem]{
    		Limit:         limit,
    		Store:         store,
    		CommitTimeout: 5 * time.Minute,
    		Log: func(ctx context.Context, err error, id string, errKind ...any) {
    			t.Log(err)
    		},
    	})
    	defer batch.Close()
    
    	for i := 0; i < int(limit); i++ {
    		if err := batch.Add(testItem); err != nil {
    			t.Fatalf("failed to add %v; %v", i, err)
    		}
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.6K bytes
    - Click Count (0)
Back to Top