Skip to content

Commit 3e8d804

Browse files
committed
Correct import for python 3.13 and above
1 parent 78e4d91 commit 3e8d804

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

python/datafusion/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from typing import TYPE_CHECKING, Any, Protocol
2323

2424
try:
25-
from typing import deprecated # Python 3.13+
25+
from warnings import deprecated # Python 3.13+
2626
except ImportError:
2727
from typing_extensions import deprecated # Python 3.12
2828

python/datafusion/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
)
3535

3636
try:
37-
from typing import deprecated # Python 3.13+
37+
from warnings import deprecated # Python 3.13+
3838
except ImportError:
3939
from typing_extensions import deprecated # Python 3.12
4040

python/datafusion/expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import pyarrow as pa
2828

2929
try:
30-
from typing import deprecated # Python 3.13+
30+
from warnings import deprecated # Python 3.13+
3131
except ImportError:
3232
from typing_extensions import deprecated # Python 3.12
3333

python/datafusion/substrait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from typing import TYPE_CHECKING
2828

2929
try:
30-
from typing import deprecated # Python 3.13+
30+
from warnings import deprecated # Python 3.13+
3131
except ImportError:
3232
from typing_extensions import deprecated # Python 3.12
3333

0 commit comments

Comments
 (0)