Always cast to a tuple

Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
This commit is contained in:
Andrew Murray 2023-08-30 07:27:09 +10:00 committed by GitHub
parent 69a81dd867
commit f9f367fe54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1565,9 +1565,7 @@ class Image:
self.load()
if self.pyaccess:
return self.pyaccess.getpixel(xy)
if isinstance(xy, list):
xy = tuple(xy)
return self.im.getpixel(xy)
return self.im.getpixel(tuple(xy))
def getprojection(self):
"""