Skip to content

Commit

Permalink
Support py 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-van-Tol committed Jun 25, 2024
1 parent b8e4a01 commit e50c17c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/geojson/test_feature_collection.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import typing
import pytest
t
try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated

from pydantic import Field
from pydantic_shapely import FeatureBaseModel, GeometryField
Expand All @@ -8,7 +12,7 @@


class FeatureModel(FeatureBaseModel, geometry_field="point"):
point: typing.Annotated[Point, GeometryField(), Field(...)]
point: Annotated[Point, GeometryField(), Field(...)]
name: str = "Hello World"
answer: int = 42

Expand Down

0 comments on commit e50c17c

Please sign in to comment.