Merge pull request #3370 from python-pillow/fix-docstring-typo

Fix docstring typo
This commit is contained in:
Andrew Murray 2018-09-21 06:38:22 +10:00 committed by GitHub
commit da4440c1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2446,7 +2446,7 @@ def fromarray(obj, mode=None):
from PIL import Image
import numpy as np
im = Image.open('hopper.jpg')
a = numpy.asarray(im)
a = np.asarray(im)
Then this can be used to convert it to a Pillow image::