chore: reduce max complexity lint (#3230)

This commit is contained in:
dni ⚡
2025-07-15 11:14:03 +02:00
parent 5765ea0276
commit ba0f7a01ef
10 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -658,7 +658,7 @@ def dict_to_submodel(model: type[TModel], value: dict | str) -> TModel | None:
return dict_to_model(_subdict, model)
def dict_to_model(_row: dict, model: type[TModel]) -> TModel:
def dict_to_model(_row: dict, model: type[TModel]) -> TModel: # noqa: C901
"""
Convert a dictionary with JSON-encoded nested models to a Pydantic model
:param _dict: Dictionary from database