mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Added tojson_filter and detect_encoding to flask.json (#3030)
This commit is contained in:
committed by
Sebastian Rittau
parent
40c4e4ff3d
commit
db5fc492aa
6
third_party/2and3/flask/json/__init__.pyi
vendored
6
third_party/2and3/flask/json/__init__.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user