Skip to content

Commit

Permalink
Correct import for python 3.13 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
timsaucer committed Feb 17, 2025
1 parent 78e4d91 commit 3e8d804
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/datafusion/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from typing import TYPE_CHECKING, Any, Protocol

try:
from typing import deprecated # Python 3.13+
from warnings import deprecated # Python 3.13+
except ImportError:
from typing_extensions import deprecated # Python 3.12

Expand Down
2 changes: 1 addition & 1 deletion python/datafusion/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
)

try:
from typing import deprecated # Python 3.13+
from warnings import deprecated # Python 3.13+
except ImportError:
from typing_extensions import deprecated # Python 3.12

Expand Down
2 changes: 1 addition & 1 deletion python/datafusion/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import pyarrow as pa

try:
from typing import deprecated # Python 3.13+
from warnings import deprecated # Python 3.13+
except ImportError:
from typing_extensions import deprecated # Python 3.12

Expand Down
2 changes: 1 addition & 1 deletion python/datafusion/substrait.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from typing import TYPE_CHECKING

try:
from typing import deprecated # Python 3.13+
from warnings import deprecated # Python 3.13+
except ImportError:
from typing_extensions import deprecated # Python 3.12

Expand Down

0 comments on commit 3e8d804

Please sign in to comment.