Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 561 - 570 of 1,681 for tone (0.02 seconds)

  1. docs/fr/docs/tutorial/response-model.md

    Votre modèle de réponse peut avoir des valeurs par défaut, par exemple :
    
    {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *}
    
    * `description: Union[str, None] = None` (ou `str | None = None` en Python 3.10) a une valeur par défaut `None`.
    * `tax: float = 10.5` a une valeur par défaut `10.5`.
    * `tags: List[str] = []` a une valeur par défaut de liste vide : `[]`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 18.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        private CIFSContext mockContext;
    
        @Mock
        private CreateContextRequest mockCreateContext;
    
        private Smb2CreateRequest request;
    
        @BeforeEach
        void setUp() {
            // Setup will be done in individual tests when needed
        }
    
        @Test
        @DisplayName("Test constructor with path initialization")
        void testConstructor() {
            // Test with normal path
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  3. docs_src/dependencies/tutorial004_an_py310.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 647 bytes
    - Click Count (0)
  4. docs/ja/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: bool | None = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  5. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

    
    router = APIRouter(dependencies=[Security(oauth2_scheme, scopes=["read"])])
    
    
    @router.get("/items/")
    async def read_items(token: str | None = Depends(oauth2_scheme)):
        return {"token": token}
    
    
    @router.post("/items/")
    async def create_item(
        token: str | None = Security(oauth2_scheme, scopes=["read", "write"]),
    ):
        return {"token": token}
    
    
    app.include_router(router)
    
    client = TestClient(app)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  6. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/jarhell/TestingConventionsTasksIT.java

            BuildResult result = runner.buildAndFail();
            assertOutputContains(
                result.getOutput(),
                "Expected at least one test class included in task :empty_test_task:emptyTest, but found none.",
                "Expected at least one test class included in task :empty_test_task:test, but found none."
            );
        }
    
        public void testAllTestTasksIncluded() {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5.2K bytes
    - Click Count (0)
  7. docs/uk/docs/tutorial/sql-databases.md

    `Field(primary_key=True)` каже SQLModel, що `id` - це **первинний ключ** у SQL базі даних (більше про первинні ключі в SQL див. у документації SQLModel).
    
        Примітка: Ми використовуємо `int | None` для поля первинного ключа, щоб у Python-коді можна було створити об’єкт без `id` (`id=None`), припускаючи, що база даних згенерує його під час збереження. SQLModel розуміє, що `id` надасть база даних, і визначає стовпець як ненульовий `INTEGER` у схемі бази даних. Докладніше див. [документацію...
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  8. tests/test_security_http_basic_optional.py

    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    security = HTTPBasic(auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials | None = Security(security)):
        if credentials is None:
            return {"msg": "Create an account first"}
        return {"username": credentials.username, "password": credentials.password}
    
    
    client = TestClient(app)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  9. internal/lru/lru.go

    	if res.ttl != noEvictionTTL {
    		go func(done <-chan struct{}) {
    			ticker := time.NewTicker(res.ttl / numBuckets)
    			defer ticker.Stop()
    			for {
    				select {
    				case <-done:
    					return
    				case <-ticker.C:
    					res.deleteExpired()
    				}
    			}
    		}(res.done)
    	}
    	return &res
    }
    
    // Purge clears the cache completely.
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  10. Vagrantfile

            cat \<\<SOURCE_PROMPT >> ~/.bashrc
    # Replace the standard prompt with a consistent one
    source /etc/profile.d/elasticsearch_prompt.sh
    SOURCE_PROMPT
          grep 'source /etc/profile.d/elasticsearch_prompt.sh' ~vagrant/.bashrc |
            cat \<\<SOURCE_PROMPT >> ~vagrant/.bashrc
    # Replace the standard prompt with a consistent one
    source /etc/profile.d/elasticsearch_prompt.sh
    SOURCE_PROMPT
      SHELL
    end
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Feb 17 17:41:23 GMT 2021
    - 14.9K bytes
    - Click Count (0)
Back to Top