Skip to content

Commit

Permalink
Require typing_extensions (#67)
Browse files Browse the repository at this point in the history
* fix: require typing_extensions

* Only require typing_extensions pre 3.11

---------

Co-authored-by: Kyle Barron <kyle@developmentseed.org>
  • Loading branch information
gadomski and kylebarron authored Jun 24, 2024
1 parent e13f237 commit ab2701f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies = [
"pystac",
"shapely",
"orjson",
'typing_extensions; python_version < "3.11"',
]

[tool.hatch.version]
Expand Down
7 changes: 6 additions & 1 deletion stac_geoparquet/arrow/_batch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import os
import sys
from copy import deepcopy
from pathlib import Path
from typing import Any, Iterable
Expand All @@ -12,7 +13,6 @@
import shapely
import shapely.geometry
from numpy.typing import NDArray
from typing_extensions import Self

from stac_geoparquet.arrow._from_arrow import (
convert_bbox_to_array,
Expand All @@ -27,6 +27,11 @@
)
from stac_geoparquet.arrow._util import convert_tuples_to_lists, set_by_path

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self


class StacJsonBatch:
"""
Expand Down

0 comments on commit ab2701f

Please sign in to comment.