Skip to content

Commit

Permalink
fix: fix context parameter for multi-input IO descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
sauyon committed Aug 29, 2022
1 parent 3de0c9a commit e952a98
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit e952a98

Please sign in to comment.