Skip to content

Commit b199a13

Browse files
Used __config__ not model_config with create_model for pydatic 2.11 compatibility
1 parent d528e9b commit b199a13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/labthings_fastapi/utilities/introspection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def input_model_from_signature(
117117
fields[name] = (p_type, default)
118118
model = create_model( # type: ignore[call-overload]
119119
f"{func.__name__}_input",
120-
model_config=ConfigDict(extra="allow" if takes_v_kwargs else "forbid"),
120+
__config__=ConfigDict(extra="allow" if takes_v_kwargs else "forbid"),
121121
**fields,
122122
)
123123
# If there are no fields, we use a RootModel to allow none as well as {}

0 commit comments

Comments
 (0)