mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +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. |     data interface. | ||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|     def __arrow_c_array__( |     # Sorry, no types for you until pre-commit.ci stops changing stringy | ||||||
|         self, requested_schema: PyCapsule = None |     # PyCapsule type to an unimportable value type, which then fails lint. | ||||||
|     ) -> tuple[PyCapsule, PyCapsule]: |     # 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() |         raise NotImplementedError() | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user