Skip to content

Commit 7695c2b

Browse files
author
Seth Teichman
committed
Fix incorrect test blueprint type hints
1 parent b56224d commit 7695c2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flask_parameter_validation/test/testing_blueprints/dict_blueprint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def optional(v: Optional[dict] = ParamType()):
3131
@ValidateParameters()
3232
def default(
3333
n_opt: dict = ParamType(default={"a": "b"}),
34-
opt: dict = ParamType(default={"c": "d"})
34+
opt: Optional[dict] = ParamType(default={"c": "d"})
3535
):
3636
return jsonify({
3737
"n_opt": n_opt,
@@ -43,7 +43,7 @@ def default(
4343
@ValidateParameters()
4444
def decorator_default(
4545
n_opt: dict = ParamType(default={"a": "b"}),
46-
opt: dict = ParamType(default={"c": "d"})
46+
opt: Optional[dict] = ParamType(default={"c": "d"})
4747
):
4848
return jsonify({
4949
"n_opt": n_opt,
@@ -55,7 +55,7 @@ def decorator_default(
5555
@ValidateParameters()
5656
async def async_decorator_default(
5757
n_opt: dict = ParamType(default={"a": "b"}),
58-
opt: dict = ParamType(default={"c": "d"})
58+
opt: Optional[dict] = ParamType(default={"c": "d"})
5959
):
6060
return jsonify({
6161
"n_opt": n_opt,

0 commit comments

Comments
 (0)