forked from orbit-oss/flask
docs: :exc:TypeError
This commit is contained in:
parent
5562acfdfc
commit
1501b79293
5 changed files with 5 additions and 5 deletions
|
|
@ -60,7 +60,7 @@ class JSONEncoder(_json.JSONEncoder):
|
|||
def default(self, o):
|
||||
"""Implement this method in a subclass such that it returns a
|
||||
serializable object for ``o``, or calls the base implementation (to
|
||||
raise a ``TypeError``).
|
||||
raise a :exc:`TypeError`).
|
||||
|
||||
For example, to support arbitrary iterators, you could implement
|
||||
default like this::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue