We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f5062a commit 1a0cb3cCopy full SHA for 1a0cb3c
api/specs/web-server/_common.py
@@ -1,5 +1,4 @@
1
-""" Common utils for OAS script generators
2
-"""
+"""Common utils for OAS script generators"""
3
4
import inspect
5
import sys
@@ -61,7 +60,7 @@ def as_query(model_class: type[BaseModel]) -> type[BaseModel]:
61
60
for field_name, field_info in model_class.model_fields.items():
62
63
field_default = field_info.default
64
- assert not field_info.default_factory # nosec
+ assert not field_info.default_factory, f"got {field_info=}" # nosec
65
query_kwargs = {
66
"alias": field_info.alias,
67
"title": field_info.title,
0 commit comments