We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d528e9b commit b199a13Copy full SHA for b199a13
1 file changed
src/labthings_fastapi/utilities/introspection.py
@@ -117,7 +117,7 @@ def input_model_from_signature(
117
fields[name] = (p_type, default)
118
model = create_model( # type: ignore[call-overload]
119
f"{func.__name__}_input",
120
- model_config=ConfigDict(extra="allow" if takes_v_kwargs else "forbid"),
+ __config__=ConfigDict(extra="allow" if takes_v_kwargs else "forbid"),
121
**fields,
122
)
123
# If there are no fields, we use a RootModel to allow none as well as {}
0 commit comments