mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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.
|
identified.
|
||||||
:exception ValueError: If the ``mode`` is not "r", or if a ``StringIO``
|
:exception ValueError: If the ``mode`` is not "r", or if a ``StringIO``
|
||||||
instance is used for ``fp``.
|
instance is used for ``fp``.
|
||||||
|
:exception TypeError: If ``formats`` is not ``None``, a list or a tuple.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if mode != "r":
|
if mode != "r":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user