- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 56 for dataless (0.11 sec)
-
docs/pt/docs/advanced/dataclasses.md
Você também pode usar `dataclasses` no parâmetro `response_model`: {* ../../docs_src/dataclasses_/tutorial002_py310.py hl[1,6:12,18] *} A dataclass será automaticamente convertida para uma dataclass Pydantic. Dessa forma, seu esquema aparecerá na interface de documentação da API: <img src="/img/tutorial/dataclasses/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.5K bytes - Viewed (0) -
docs/es/docs/advanced/dataclasses.md
También puedes usar `dataclasses` en el parámetro `response_model`: {* ../../docs_src/dataclasses_/tutorial002_py310.py hl[1,6:12,18] *} El dataclass será automáticamente convertido a un dataclass de Pydantic. De esta manera, su esquema aparecerá en la interfaz de usuario de la documentación de la API: <img src="/img/tutorial/dataclasses/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.5K bytes - Viewed (0) -
docs_src/dataclasses_/tutorial001_py39.py
from dataclasses import dataclass from typing import Union from fastapi import FastAPI @dataclass class Item: name: str price: float description: Union[str, None] = None tax: Union[float, None] = None app = FastAPI() @app.post("/items/") async def create_item(item: Item):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 312 bytes - Viewed (0) -
docs_src/dataclasses_/tutorial002_py310.py
from dataclasses import dataclass, field from fastapi import FastAPI @dataclass class Item: name: str price: float tags: list[str] = field(default_factory=list) description: str | None = None tax: float | None = None app = FastAPI() @app.get("/items/next", response_model=Item) async def read_next_item(): return { "name": "Island In The Moon", "price": 12.99,Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 506 bytes - Viewed (0) -
tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py
from __future__ import annotations import uuid from dataclasses import dataclass, field from typing import Union from dirty_equals import IsUUID from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot @dataclass class Item: id: uuid.UUID name: str price: float tags: list[str] = field(default_factory=list) description: Union[str, None] = NoneRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.1K bytes - Viewed (0) -
tests/test_validate_response_dataclass.py
from typing import Optional import pytest from fastapi import FastAPI from fastapi.exceptions import ResponseValidationError from fastapi.testclient import TestClient from pydantic.dataclasses import dataclass app = FastAPI() @dataclass class Item: name: str price: Optional[float] = None owner_ids: Optional[list[int]] = None @app.get("/items/invalid", response_model=Item) def get_invalid():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
final int dataLen = SMBUtil.readInt2(buffer, ncpos + 2); // Validate context data length if (dataLen < 0 || dataLen > 1024) { // 1KB max per context throw new SMBProtocolDecodingException( "Invalid negotiate context data length: " + dataLen + " at position " + i + " (must be 0-1024)"); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
fastapi/dependencies/models.py
import inspect import sys from dataclasses import dataclass, field from functools import cached_property, partial from typing import Any, Callable, Optional, Union from fastapi._compat import ModelField from fastapi.security.base import SecurityBase from fastapi.types import DependencyCacheKey from typing_extensions import Literal if sys.version_info >= (3, 13): # pragma: no cover from inspect import iscoroutinefunction
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 7.1K bytes - Viewed (0) -
tests/test_serialize_response_dataclass.py
from dataclasses import dataclass from datetime import datetime from typing import Optional from fastapi import FastAPI from fastapi.testclient import TestClient app = FastAPI() @dataclass class Item: name: str date: datetime price: Optional[float] = None owner_ids: Optional[list[int]] = None @app.get("/items/valid", response_model=Item) def get_valid():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java
assertThat(manyValuesAccumulatorByAddAllPartitionedPairedStats.populationCovariance()) .isWithin(ALLOWED_ERROR) .of(MANY_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / MANY_VALUES_COUNT); // For datasets of many double values, we test many combinations of finite and non-finite // x-values: for (ManyValues values : ALL_MANY_VALUES) { PairedStatsAccumulator accumulator =
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 23.4K bytes - Viewed (0)