Skip to content

Commit 11b65f0

Browse files
committed
move from tyiping.Self to type_extensions.Self for py310
1 parent ac97da3 commit 11b65f0

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

duckdb/experimental/spark/_globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def foo(arg=pyducdkb.spark._NoValue):
3333

3434
__ALL__ = ["_NoValue"]
3535

36-
from typing import Self
36+
from typing_extensions import Self
3737

3838
# Disallow reloading this module so as to preserve the identities of the
3939
# classes defined here.

duckdb/experimental/spark/sql/types.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,9 @@
99
from builtins import tuple
1010
from collections.abc import Iterator, Mapping
1111
from types import MappingProxyType
12-
from typing import (
13-
Any,
14-
ClassVar,
15-
NoReturn,
16-
Self,
17-
TypeVar,
18-
Union,
19-
cast,
20-
overload,
21-
)
12+
from typing import Any, ClassVar, NoReturn, TypeVar, Union, cast, overload
13+
14+
from typing_extensions import Self
2215

2316
import duckdb
2417
from duckdb.sqltypes import DuckDBPyType

0 commit comments

Comments
 (0)