forked from orbit-oss/flask
Merge branch '2.1.x'
This commit is contained in:
commit
cb4f742543
5 changed files with 28 additions and 15 deletions
|
|
@ -763,7 +763,10 @@ class SeparatedPathType(click.Path):
|
|||
@click.option("--host", "-h", default="127.0.0.1", help="The interface to bind to.")
|
||||
@click.option("--port", "-p", default=5000, help="The port to bind to.")
|
||||
@click.option(
|
||||
"--cert", type=CertParamType(), help="Specify a certificate file to use HTTPS."
|
||||
"--cert",
|
||||
type=CertParamType(),
|
||||
help="Specify a certificate file to use HTTPS.",
|
||||
is_eager=True,
|
||||
)
|
||||
@click.option(
|
||||
"--key",
|
||||
|
|
|
|||
|
|
@ -153,7 +153,11 @@ def dump(
|
|||
_json.dump(obj, fp, **kwargs)
|
||||
|
||||
|
||||
def loads(s: str, app: t.Optional["Flask"] = None, **kwargs: t.Any) -> t.Any:
|
||||
def loads(
|
||||
s: t.Union[str, bytes],
|
||||
app: t.Optional["Flask"] = None,
|
||||
**kwargs: t.Any,
|
||||
) -> t.Any:
|
||||
"""Deserialize an object from a string of JSON.
|
||||
|
||||
Takes the same arguments as the built-in :func:`json.loads`, with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue