Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 759 for thrice (0.05 seconds)

  1. tests/test_tutorial/test_response_model/test_tutorial005.py

                        "Item": {
                            "title": "Item",
                            "required": ["name", "price"],
                            "type": "object",
                            "properties": {
                                "name": {"title": "Name", "type": "string"},
                                "price": {"title": "Price", "type": "number"},
                                "description": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_response_model/test_tutorial006.py

                        "Item": {
                            "title": "Item",
                            "required": ["name", "price"],
                            "type": "object",
                            "properties": {
                                "name": {"title": "Name", "type": "string"},
                                "price": {"title": "Price", "type": "number"},
                                "description": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_body_multiple_params/test_tutorial005.py

                            },
                            "price": {"title": "Price", "type": "number"},
                            "tax": {
                                "title": "Tax",
                                "anyOf": [{"type": "number"}, {"type": "null"}],
                            },
                        },
                        "required": [
                            "name",
                            "price",
                        ],
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  4. tests/lru_test.go

    	l := lru.NewLRU[int64, int64](8192, nil, 0)
    
    	trace := make([]int64, b.N*2)
    	for i := 0; i < b.N*2; i++ {
    		if i%2 == 0 {
    			trace[i] = getRand(b) % 16384
    		} else {
    			trace[i] = getRand(b) % 32768
    		}
    	}
    
    	b.ResetTimer()
    
    	for i := 0; i < b.N; i++ {
    		l.Add(trace[i], trace[i])
    	}
    	var hit, miss int
    	for i := 0; i < b.N; i++ {
    		if _, ok := l.Get(trace[i]); ok {
    			hit++
    		} else {
    			miss++
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Sep 08 09:19:22 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

            json={
                "importance": 2,
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "Dave"},
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "importance": 2,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": None,
                "tax": None,
            },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py

    DESCRIPTIONS = {
        "tutorial003": "Create an item with all the information, name, description, price, tax and a set of unique tags",
        "tutorial004": dedent("""
            Create an item with all the information:
    
            - **name**: each item must have a name
            - **description**: a long description
            - **price**: required
            - **tax**: if the item doesn't have tax, you can omit this
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactDeployerRequest.java

                this.session = session;
                return this;
            }
    
            @Nonnull
            public ArtifactDeployerRequestBuilder trace(RequestTrace trace) {
                this.trace = trace;
                return this;
            }
    
            @Nonnull
            public ArtifactDeployerRequestBuilder repository(RemoteRepository repository) {
                this.repository = repository;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jStdoutLogger.java

            return false;
        }
    
        @Override
        public void trace(String msg) {}
    
        @Override
        public void trace(String format, Object arg) {}
    
        @Override
        public void trace(String format, Object arg1, Object arg2) {}
    
        @Override
        public void trace(String format, Object... arguments) {}
    
        @Override
        public void trace(String msg, Throwable t) {}
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  9. tests/test_union_body.py

    
    class OtherItem(BaseModel):
        price: int
    
    
    @app.post("/items/")
    def save_union_body(item: Union[OtherItem, Item]):
        return {"item": item}
    
    
    client = TestClient(app)
    
    
    def test_post_other_item():
        response = client.post("/items/", json={"price": 100})
        assert response.status_code == 200, response.text
        assert response.json() == {"item": {"price": 100}}
    
    
    def test_post_item():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  10. docs_src/generate_clients/tutorial002_py39.py

    @app.get("/items/", response_model=list[Item], tags=["items"])
    async def get_items():
        return [
            {"name": "Plumbus", "price": 3},
            {"name": "Portal Gun", "price": 9001},
        ]
    
    
    @app.post("/users/", response_model=ResponseMessage, tags=["users"])
    async def create_user(user: User):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Mar 04 22:02:18 GMT 2022
    - 730 bytes
    - Click Count (0)
Back to Top