- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for confirm (0.27 sec)
-
tests/test_datetime_custom_encoder.py
# TODO: remove when deprecating Pydantic v1 @needs_pydanticv1 def test_pydanticv1(): class ModelWithDatetimeField(BaseModel): dt_field: datetime class Config: json_encoders = { datetime: lambda dt: dt.replace( microsecond=0, tzinfo=timezone.utc ).isoformat() } app = FastAPI()
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 1.6K bytes - Viewed (0)