diff options
| author | Max Nanis | 2026-08-20 15:40:48 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-08-20 15:40:48 -0700 |
| commit | 0c10237223829818752ab4fc431957c0b22a0e23 (patch) | |
| tree | 55d541235b32aadf9585dc10381bb9d7f0e28542 /tests/models/custom_types | |
| parent | 77e64ac954a7738b93a85fefde25fd6436e75737 (diff) | |
| download | generalresearch-0c10237223829818752ab4fc431957c0b22a0e23.tar.gz generalresearch-0c10237223829818752ab4fc431957c0b22a0e23.zip | |
Diffstat (limited to 'tests/models/custom_types')
| -rw-r--r-- | tests/models/custom_types/test_aware_datetime.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/models/custom_types/test_aware_datetime.py b/tests/models/custom_types/test_aware_datetime.py index 14d1343..530142e 100644 --- a/tests/models/custom_types/test_aware_datetime.py +++ b/tests/models/custom_types/test_aware_datetime.py @@ -1,6 +1,7 @@ +from __future__ import annotations + import logging from datetime import datetime, timezone -from typing import Optional import pytest import pytz @@ -12,7 +13,7 @@ logger = logging.getLogger() class AwareDatetimeISOModel(BaseModel): - dt_optional: Optional[AwareDatetimeISO] = Field(default=None) + dt_optional: AwareDatetimeISO | None = Field(default=None) dt: AwareDatetimeISO |
