mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge pull request #8613 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.14.0
This commit is contained in:
		
						commit
						0e3f51dec6
					
				| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
mypy==1.13.0
 | 
					mypy==1.14.0
 | 
				
			||||||
IceSpringPySideStubs-PyQt6
 | 
					IceSpringPySideStubs-PyQt6
 | 
				
			||||||
IceSpringPySideStubs-PySide6
 | 
					IceSpringPySideStubs-PySide6
 | 
				
			||||||
ipython
 | 
					ipython
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -388,10 +388,12 @@ class TestColorLut3DFilter:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        table = numpy.ones((7 * 6 * 5, 3), dtype=numpy.float16)
 | 
					        table = numpy.ones((7 * 6 * 5, 3), dtype=numpy.float16)
 | 
				
			||||||
        lut = ImageFilter.Color3DLUT((5, 6, 7), table)
 | 
					        lut = ImageFilter.Color3DLUT((5, 6, 7), table)
 | 
				
			||||||
 | 
					        assert isinstance(lut.table, numpy.ndarray)
 | 
				
			||||||
        assert lut.table.shape == (table.size,)
 | 
					        assert lut.table.shape == (table.size,)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        table = numpy.ones((7 * 6 * 5 * 3), dtype=numpy.float16)
 | 
					        table = numpy.ones((7 * 6 * 5 * 3), dtype=numpy.float16)
 | 
				
			||||||
        lut = ImageFilter.Color3DLUT((5, 6, 7), table)
 | 
					        lut = ImageFilter.Color3DLUT((5, 6, 7), table)
 | 
				
			||||||
 | 
					        assert isinstance(lut.table, numpy.ndarray)
 | 
				
			||||||
        assert lut.table.shape == (table.size,)
 | 
					        assert lut.table.shape == (table.size,)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Check application
 | 
					        # Check application
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -553,7 +553,7 @@ class Color3DLUT(MultibandFilter):
 | 
				
			||||||
        ch_out = channels or ch_in
 | 
					        ch_out = channels or ch_in
 | 
				
			||||||
        size_1d, size_2d, size_3d = self.size
 | 
					        size_1d, size_2d, size_3d = self.size
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        table = [0] * (size_1d * size_2d * size_3d * ch_out)
 | 
					        table: list[float] = [0] * (size_1d * size_2d * size_3d * ch_out)
 | 
				
			||||||
        idx_in = 0
 | 
					        idx_in = 0
 | 
				
			||||||
        idx_out = 0
 | 
					        idx_out = 0
 | 
				
			||||||
        for b in range(size_3d):
 | 
					        for b in range(size_3d):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user