Skip to content

Commit 3e02b86

Browse files
committed
Fix typo and add dep
1 parent 1b36f3c commit 3e02b86

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

flask_parameter_validation/parameter_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ async def nested_func(**kwargs):
7777
except Exception as e:
7878
return self.custom_error_handler(e)
7979
validated_inputs[expected.name] = new_input
80-
81-
if asyncio.iscoroutinefunctions(f):
80+
81+
if asyncio.iscoroutinefunction(f):
8282
return await f(**validated_inputs)
8383
else:
8484
return f(**validated_inputs)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
platforms='any',
2929
install_requires=[
3030
'Flask',
31+
'flask[async]',
3132
'python-dateutil',
3233
],
3334
classifiers=[

0 commit comments

Comments
 (0)