mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-23 02:32:00 +03:00
Fix pre-commit.ci lint.
This commit is contained in:
parent
19eb3e446a
commit
cba8e09494
|
@ -3210,9 +3210,16 @@ class SupportsArrowArrayInterface(Protocol):
|
|||
data interface.
|
||||
"""
|
||||
|
||||
def __arrow_c_array__(
|
||||
self, requested_schema: PyCapsule = None
|
||||
) -> tuple[PyCapsule, PyCapsule]:
|
||||
# Sorry, no types for you until pre-commit.ci stops changing stringy
|
||||
# PyCapsule type to an unimportable value type, which then fails lint.
|
||||
# PyCapsules are not importable, and only available in the C-API layer.
|
||||
# def __arrow_c_array__(
|
||||
# self, requested_schema: 'PyCapsule' = None
|
||||
# ) -> tuple['PyCapsule', 'PyCapsule']:
|
||||
# raise NotImplementedError()
|
||||
|
||||
# old not typed definition.
|
||||
def __arrow_c_array__(self, requested_schema = None) -> tuple:
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user