Skip to content

Commit

Permalink
PyCapsules aren't actually importable in python.
Browse files Browse the repository at this point in the history
They're only a C-api thing, so we can only get their type from an
instance. They're not in Typing or Types.
  • Loading branch information
wiredfool committed Feb 18, 2025
1 parent e81b669 commit 7ac90fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3211,8 +3211,8 @@ class SupportsArrowArrayInterface(Protocol):
"""

def __arrow_c_array__(
self, requested_schema: PyCapsule = None
) -> tuple[PyCapsule, PyCapsule]:
self, requested_schema: 'PyCapsule' = None
) -> tuple['PyCapsule', 'PyCapsule']:
raise NotImplementedError()


Expand Down

0 comments on commit 7ac90fa

Please sign in to comment.