Skip to content

Commit

Permalink
fix: add typing-extensions to dependencies (#227)
Browse files Browse the repository at this point in the history
* fix: add  to dependencies

* Handle typing-extensions import based on Python version

* Set typing-extensions min version to 4.0.0
  • Loading branch information
jlondonobo committed Apr 8, 2024
1 parent 8169053 commit 30f8087
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ classifiers = [
]
dependencies = [
"pyarrow>=8.0.0",
"typing-extensions>=4.0.0; python_version<'3.10'",
]

[project.optional-dependencies]
Expand Down
6 changes: 5 additions & 1 deletion python/fastexcel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from __future__ import annotations

import sys
from typing import TYPE_CHECKING, Literal

from typing_extensions import TypeAlias
if sys.version_info < (3, 10):
from typing_extensions import TypeAlias
else:
from typing import TypeAlias

if TYPE_CHECKING:
import pandas as pd
Expand Down

0 comments on commit 30f8087

Please sign in to comment.