Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 1,091 for Fstr (0.02 seconds)

  1. docs/pt/docs/tutorial/body-nested-models.md

    * Conversão de dados
    * Validação de dados
    * Documentação automática
    
    ## Tipos especiais e validação { #special-types-and-validation }
    
    Além dos tipos singulares normais como `str`, `int`, `float`, etc. Você também pode usar tipos singulares mais complexos que herdam de `str`.
    
    Para ver todas as opções possíveis, consulte a [Visão geral dos tipos do Pydantic](https://docs.pydantic.dev/latest/concepts/types/). Você verá alguns exemplos no próximo capítulo.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. docs_src/settings/app02_an_py310/config.py

    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 159 bytes
    - Click Count (0)
  3. docs_src/settings/app02_py310/config.py

    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 159 bytes
    - Click Count (0)
  4. docs_src/stream_json_lines/tutorial001_py310.py

    from collections.abc import AsyncIterable, Iterable
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None
    
    
    items = [
        Item(name="Plumbus", description="A multi-purpose household device."),
        Item(name="Portal Gun", description="A portal opening device."),
        Item(name="Meeseeks Box", description="A box that summons a Meeseeks."),
    ]
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 936 bytes
    - Click Count (0)
  5. docs_src/python_types/tutorial013_py310.py

    from typing import Annotated
    
    
    def say_hello(name: Annotated[str, "this is just metadata"]) -> str:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 127 bytes
    - Click Count (0)
  6. docs/ko/docs/python-types.md

    대괄호 안의 내부 타입은 "type parameters"라고 부릅니다.
    
    이 경우 `str`이 `list`에 전달된 타입 매개변수입니다.
    
    ///
    
    이는 "변수 `items`는 `list`이고, 이 `list`의 각 아이템은 `str`이다"라는 뜻입니다.
    
    이렇게 하면, 에디터는 리스트의 아이템을 처리하는 동안에도 지원을 제공할 수 있습니다:
    
    <img src="/img/python-types/image05.png">
    
    타입이 없으면, 이는 거의 불가능합니다.
    
    변수 `item`이 리스트 `items`의 요소 중 하나라는 점에 주목하세요.
    
    그리고 에디터는 여전히 이것이 `str`임을 알고, 그에 대한 지원을 제공합니다.
    
    #### Tuple과 Set { #tuple-and-set }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 13K bytes
    - Click Count (0)
  7. docs_src/settings/app03_an_py310/config.py

    from pydantic_settings import BaseSettings, SettingsConfigDict
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 235 bytes
    - Click Count (0)
  8. docs_src/generate_clients/tutorial003_py310.py

    
    app = FastAPI(generate_unique_id_function=custom_generate_unique_id)
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class ResponseMessage(BaseModel):
        message: str
    
    
    class User(BaseModel):
        username: str
        email: str
    
    
    @app.post("/items/", response_model=ResponseMessage, tags=["items"])
    async def create_item(item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 914 bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/llm/IntentDetectionResultTest.java

            final IntentDetectionResult result = IntentDetectionResult.search("test query", "reasoning");
    
            final String str = result.toString();
            assertNotNull(str);
            assertTrue(str.contains("IntentDetectionResult"));
            assertTrue(str.contains("SEARCH"));
            assertTrue(str.contains("test query"));
        }
    
        @Test
        public void test_reasoning_preserved() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  10. docs/de/docs/advanced/advanced-python-types.md

    Zum Beispiel könnten Sie deklarieren, dass etwas ein `str` oder `None` sein könnte:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    `typing` hat außerdem eine Abkürzung, um zu deklarieren, dass etwas `None` sein könnte, mit `Optional`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 07:57:30 GMT 2026
    - 2.3K bytes
    - Click Count (0)
Back to Top