Skip to content

Commit f9c93d1

Browse files
committed
compat - 3.8 typing
tests/test_epoch.py:5: in <module> from pydantic_extra_types import epoch pydantic_extra_types/epoch.py:12: in <module> 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
1 parent aa280c6 commit f9c93d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydantic_extra_types/epoch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import datetime
24
from typing import Any, Callable, Optional
35

0 commit comments

Comments
 (0)