Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 851 - 860 of 1,096 for sltr (0.02 seconds)

  1. tests/test_dependency_duplicates.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    client = TestClient(app)
    
    
    class Item(BaseModel):
        data: str
    
    
    def duplicate_dependency(item: Item):
        return item
    
    
    def dependency(item2: Item):
        return item2
    
    
    def sub_duplicate_dependency(
        item: Item, sub_item: Item = Depends(duplicate_dependency)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/body.md

    * If the parameter is of a **singular type** (like `int`, `float`, `str`, `bool`, etc) it will be interpreted as a **query** parameter.
    * If the parameter is declared to be of the type of a **Pydantic model**, it will be interpreted as a request **body**.
    
    /// note
    
    FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. docs/fr/docs/tutorial/dependencies/classes-as-dependencies.md

    Vous remarquerez que pour créer une instance d'une classe Python, vous utilisez la même syntaxe.
    
    Par exemple :
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    Dans ce cas, `fluffy` est une instance de la classe `Cat`.
    
    Et pour créer `fluffy`, vous « appelez » `Cat`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:12:41 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  4. docs/ru/docs/tutorial/path-params-numeric-validations.md

    /// tip | Подсказка
    
    Это не имеет большого значения, если вы используете `Annotated`.
    
    ///
    
    Допустим, вы хотите объявить query-параметр `q` как обязательный параметр типа `str`.
    
    И если вам больше ничего не нужно указывать для этого параметра, то нет необходимости использовать `Query`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  5. docs/uk/docs/advanced/custom-response.md

    Головний клас `Response`, від якого успадковуються всі інші відповіді.
    
    Ви можете повертати його безпосередньо.
    
    Він приймає такі параметри:
    
    - `content` - `str` або `bytes`.
    - `status_code` - `int` - код статусу HTTP.
    - `headers` - `dict` строк.
    - `media_type` - `str`, що задає медіа-тип, напр. `"text/html"`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17K bytes
    - Click Count (0)
  6. docs/tr/docs/advanced/settings.md

    Örneğin, şöyle bir fonksiyonunuz varsa:
    
    ```Python
    @lru_cache
    def say_hi(name: str, salutation: str = "Ms."):
        return f"Hello {salutation} {name}"
    ```
    
    programınız şu şekilde çalışabilir:
    
    ```mermaid
    sequenceDiagram
    
    participant code as Code
    participant function as say_hi()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  7. tests/test_dependency_after_yield_websockets.py

    from fastapi.testclient import TestClient
    
    
    class Session:
        def __init__(self) -> None:
            self.data = ["foo", "bar", "baz"]
            self.open = True
    
        def __iter__(self) -> Generator[str, None, None]:
            for item in self.data:
                if self.open:
                    yield item
                else:
                    raise ValueError("Session closed")
    
    
    @contextmanager
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. tests/test_include_router_defaults_overrides.py

    callback_router0 = APIRouter()
    
    
    @callback_router0.get("/")
    async def callback0(level0: str):
        pass  # pragma: nocover
    
    
    callback_router1 = APIRouter()
    
    
    @callback_router1.get("/")
    async def callback1(level1: str):
        pass  # pragma: nocover
    
    
    callback_router2 = APIRouter()
    
    
    @callback_router2.get("/")
    async def callback2(level2: str):
        pass  # pragma: nocover
    
    
    callback_router3 = APIRouter()
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 385.6K bytes
    - Click Count (0)
  9. docs/es/docs/advanced/security/oauth2-scopes.md

    Para eso, actualizamos el modelo de Pydantic `TokenData` con una nueva propiedad `scopes`.
    
    Al validar los datos con Pydantic podemos asegurarnos de que tenemos, por ejemplo, exactamente una `list` de `str` con los scopes y un `str` con el `username`.
    
    En lugar de, por ejemplo, un `dict`, o algo más, ya que podría romper la aplicación en algún punto posterior, haciéndolo un riesgo de seguridad.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 14.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/SID.java

            }
            if (domainName != null) {
                String str;
    
                if (type == SID_TYPE_DOMAIN) {
                    str = domainName;
                } else if (type == SID_TYPE_WKN_GRP || domainName.equals("BUILTIN")) {
                    if (type == SID_TYPE_UNKNOWN) {
                        str = toString();
                    } else {
                        str = acctName;
                    }
                } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.5K bytes
    - Click Count (0)
Back to Top