Skip to content

Commit b8fa41c

Browse files
committed
Revert "Remove unnecessary _PyCapsule class definition and import for clarity"
This reverts commit 0a10e48.
1 parent 0a10e48 commit b8fa41c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

python/datafusion/user_defined.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,13 @@
4141
from datafusion.expr import Expr
4242

4343
if TYPE_CHECKING:
44+
from _typeshed import CapsuleType as _PyCapsule
45+
4446
_R = TypeVar("_R", bound=pa.DataType)
47+
else:
4548

49+
class _PyCapsule:
50+
"""Lightweight typing proxy for CPython ``PyCapsule`` objects."""
4651

4752

4853
class Volatility(Enum):

0 commit comments

Comments
 (0)