From f9c93d16438b85e134dec144241f7df591695375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20K=C3=B6tter?= Date: Sat, 16 Nov 2024 09:10:51 +0100 Subject: [PATCH] compat - 3.8 typing tests/test_epoch.py:5: in from pydantic_extra_types import epoch pydantic_extra_types/epoch.py:12: in class _Base(datetime.datetime): pydantic_extra_types/epoch.py:27: in _Base cls, source: type[Any], handler: Callable[[Any], CoreSchema] E TypeError: 'type' object is not subscriptable --- pydantic_extra_types/epoch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pydantic_extra_types/epoch.py b/pydantic_extra_types/epoch.py index 1492bac..93ca05e 100644 --- a/pydantic_extra_types/epoch.py +++ b/pydantic_extra_types/epoch.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import datetime from typing import Any, Callable, Optional