Commit 8008e49
authored
Add type hints to Image component documentation (#1229)
If the source of the image is from the PIL package, the type hint must be "Image.Image". It is easy to mistake it for simply "Image" which results in the following error: TypeError: Unsupported type <module 'PIL.Image'>. This simple type hint on the documentation resolves any confusion.1 parent 46da8f3 commit 8008e49
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
0 commit comments