Fix docstring typo

If we `import numpy as np`, use `np` not `numpy`
This commit is contained in:
Hugo 2018-09-20 15:27:30 +03:00 committed by GitHub
parent 2858825771
commit ed4de6cb62
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::