Skip to content

Commit

Permalink
compat - 3.8 typing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
commonism committed Nov 16, 2024
1 parent aa280c6 commit f9c93d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydantic_extra_types/epoch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import datetime
from typing import Any, Callable, Optional

Expand Down

0 comments on commit f9c93d1

Please sign in to comment.