Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix context parameter for multi-input IO descriptors #2948

Merged
merged 2 commits into from Aug 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions bentoml/_internal/service/inference_api.py
Expand Up @@ -57,8 +57,8 @@ def __init__(
if isinstance(input_type, dict):
# note: in python 3.6 kwarg order was not guaranteed to be preserved,
# though it is in practice.
for key in input_type:
if key not in sig.parameters:
for key in sig.parameters:
if key not in input_type:
if (
key in ["context", "ctx"]
or sig.parameters[key].annotation == Context
Expand Down