Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 911 - 920 of 2,501 for name7 (0.03 seconds)

  1. docs_src/bigger_applications/app_an_py310/routers/items.py

    )
    
    
    fake_items_db = {"plumbus": {"name": "Plumbus"}, "gun": {"name": "Portal Gun"}}
    
    
    @router.get("/")
    async def read_items():
        return fake_items_db
    
    
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        if item_id not in fake_items_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return {"name": fake_items_db[item_id]["name"], "item_id": item_id}
    
    
    @router.put(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1011 bytes
    - Click Count (0)
  2. tests/test_stream_json_validation_error.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    app = FastAPI()
    
    
    @app.get("/items/stream-invalid")
    async def stream_items_invalid() -> AsyncIterable[Item]:
        yield {"name": "valid", "price": 1.0}
        yield {"name": "invalid", "price": "not-a-number"}
    
    
    @app.get("/items/stream-invalid-sync")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 991 bytes
    - Click Count (0)
  3. tests/test_response_model_data_filter.py

            hashed_password="secrethashed",
        )
        pet = PetDB(name="Nibbler", owner=user)
        return pet
    
    
    @app.get("/pets/", response_model=list[PetOut])
    async def read_pets():
        user = UserDB(
            email="******@****.***",
            hashed_password="secrethashed",
        )
        pet1 = PetDB(name="Nibbler", owner=user)
        pet2 = PetDB(name="Zoidberg", owner=user)
        return [pet1, pet2]
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

    
    @pytest.fixture(
        name="mod_name",
        params=[
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial003_py310", marks=needs_py310),
        ],
    )
    def get_mod_name(request: pytest.FixtureRequest):
        return request.param
    
    
    @pytest.fixture(name="client")
    def get_client(mod_name: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

        /**
         * Create a circuit breaker with default settings
         *
         * @param name circuit breaker name for logging
         */
        public SmbCircuitBreaker(String name) {
            this(name, 5, 3, 60000, 3, false, false, 100);
        }
    
        /**
         * Create a circuit breaker with custom settings
         *
         * @param name circuit breaker name for logging
         * @param failureThreshold number of failures before opening
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.validation;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.File;
    import java.util.Arrays;
    import java.util.Deque;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.LinkedList;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
  7. .github/workflows/translate.yml

        steps:
          - uses: actions/checkout@v6
          - name: Set up Python
            uses: actions/setup-python@v6
            with:
              python-version-file: ".python-version"
          - name: Setup uv
            uses: astral-sh/setup-uv@v7
            with:
              cache-dependency-glob: |
                pyproject.toml
                uv.lock
          - name: Install Dependencies
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Mar 18 15:36:56 GMT 2026
    - 4K bytes
    - Click Count (0)
  8. fess-crawler-lasta/src/main/resources/crawler.xml

    	<component name="urlQueue" class="org.codelibs.fess.crawler.entity.UrlQueueImpl" instance="prototype" >
    	</component>
    
    	<!-- Service -->
    	<component name="urlQueueService" class="org.codelibs.fess.crawler.service.impl.UrlQueueServiceImpl" instance="prototype" >
    	</component>
    	<component name="dataService" class="org.codelibs.fess.crawler.service.impl.DataServiceImpl" instance="prototype" >
    	</component>
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Tue Nov 28 13:40:25 GMT 2017
    - 1.7K bytes
    - Click Count (0)
  9. cmd/api-response.go

    	for _, object := range resp.Objects {
    		if object.Name == "" {
    			continue
    		}
    		// Cache checks for the same object
    		if metadata != nil && lastObjMetaName != object.Name {
    			tagErr = metadata(object.Name, policy.GetObjectTaggingAction)
    			metaErr = metadata(object.Name, policy.GetObjectAction)
    			lastObjMetaName = object.Name
    		}
    		content := ObjectVersion{}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:05:19 GMT 2025
    - 35K bytes
    - Click Count (0)
  10. docs/fr/docs/advanced/advanced-python-types.md

    ```python
    from typing import Optional
    
    
    def say_hi(name: Optional[str]):
        print(f"Hey {name}!")
    ```
    
    Le paramètre `name` est défini comme `Optional[str]`, mais il n'est pas facultatif, vous ne pouvez pas appeler la fonction sans le paramètre :
    
    ```Python
    say_hi()  # Oh non, cela lève une erreur ! 😱
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:12:41 GMT 2026
    - 2.3K bytes
    - Click Count (0)
Back to Top