mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
Document exception [ci skip]
This commit is contained in:
parent
30c4945d9c
commit
1c85b9fec7
|
@ -2862,6 +2862,7 @@ def open(fp, mode="r", formats=None):
|
|||
identified.
|
||||
:exception ValueError: If the ``mode`` is not "r", or if a ``StringIO``
|
||||
instance is used for ``fp``.
|
||||
:exception TypeError: If ``formats`` is not ``None``, a list or a tuple.
|
||||
"""
|
||||
|
||||
if mode != "r":
|
||||
|
|
Loading…
Reference in New Issue
Block a user