Added tojson_filter and detect_encoding to flask.json (#3030)

This commit is contained in:
Evan Moses
2019-06-05 14:39:49 -07:00
committed by Sebastian Rittau
parent 40c4e4ff3d
commit db5fc492aa

View File

@@ -1,15 +1,14 @@
# Stubs for flask.json (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import json as _json
from typing import Any
from jinja2 import Markup
class JSONEncoder(_json.JSONEncoder):
def default(self, o: Any): ...
class JSONDecoder(_json.JSONDecoder): ...
def detect_encoding(data: bytes) -> str: ... # undocumented
def dumps(obj: Any, **kwargs: Any): ...
def dump(obj: Any, fp: Any, **kwargs: Any) -> None: ...
def loads(s: Any, **kwargs: Any): ...
@@ -17,3 +16,4 @@ def load(fp: Any, **kwargs: Any): ...
def htmlsafe_dumps(obj: Any, **kwargs: Any): ...
def htmlsafe_dump(obj: Any, fp: Any, **kwargs: Any) -> None: ...
def jsonify(*args: Any, **kwargs: Any): ...
def tojson_filter(obj: Any, **kwargs: Any) -> Markup: ... # undocumented