Skip to content

Commit 908aacd

Browse files
committed
fixing issue with _app when using dispatch, need to keep in context
1 parent 9ffba5a commit 908aacd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

dash/server_factories/fastapi_factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ async def serve(request: Request, package_name: str, fingerprinted_path: str):
215215
serve,
216216
)
217217

218-
def dispatch(self, _app, dash_app, _use_async):
218+
def dispatch(
219+
self, app, dash_app, use_async=False
220+
): # pylint: disable=unused-argument
219221
async def _dispatch(request: Request):
220222
adapter = FastAPIRequestAdapter()
221223
set_request_adapter(adapter)

dash/server_factories/flask_factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ def serve(package_name, fingerprinted_path):
127127
serve,
128128
)
129129

130-
def dispatch(self, _app, dash_app, use_async=False):
130+
def dispatch(
131+
self, app, dash_app, use_async=False
132+
): # pylint: disable=unused-argument
131133
def _dispatch():
132134
adapter = FlaskRequestAdapter()
133135
set_request_adapter(adapter)

0 commit comments

Comments
 (0)