mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Clarify apply_transparency() docstring
This commit is contained in:
		
							parent
							
								
									0d6440d9f2
								
							
						
					
					
						commit
						f6f622dcee
					
				|  | @ -1482,7 +1482,8 @@ class Image: | |||
|     def apply_transparency(self): | ||||
|         """ | ||||
|         If a P mode image has a "transparency" key in the info dictionary, | ||||
|         remove the key and apply the transparency to the palette instead. | ||||
|         remove the key and instead apply the transparency to the palette. | ||||
|         Otherwise, the image is unchanged. | ||||
|         """ | ||||
|         if self.mode != "P" or "transparency" not in self.info: | ||||
|             return | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user