mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Added type hints (#8867)
This commit is contained in:
		
							parent
							
								
									8691112a2c
								
							
						
					
					
						commit
						9f4195752d
					
				| 
						 | 
					@ -3326,7 +3326,9 @@ def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image:
 | 
				
			||||||
    return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
 | 
					    return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def fromarrow(obj: SupportsArrowArrayInterface, mode, size) -> Image:
 | 
					def fromarrow(
 | 
				
			||||||
 | 
					    obj: SupportsArrowArrayInterface, mode: str, size: tuple[int, int]
 | 
				
			||||||
 | 
					) -> Image:
 | 
				
			||||||
    """Creates an image with zero-copy shared memory from an object exporting
 | 
					    """Creates an image with zero-copy shared memory from an object exporting
 | 
				
			||||||
    the arrow_c_array interface protocol::
 | 
					    the arrow_c_array interface protocol::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user