We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3ee37d + d7b3eed commit 7e8559aCopy full SHA for 7e8559a
1 file changed
src/utils/schema_dumper.py
@@ -1,6 +1,7 @@
1
"""Function to dump the configuration schema into OpenAPI-compatible format."""
2
3
import json
4
+from typing import Any
5
6
from pydantic.json_schema import models_json_schema
7
@@ -9,8 +10,8 @@
9
10
11
# pylint: disable=too-many-boolean-expressions
12
def recursive_update(
- original: dict,
13
-) -> dict:
+ original: dict[str, Any],
14
+) -> dict[str, Any]:
15
"""Recursively update the schema to be 100% OpenAPI-compatible.
16
17
Parameters:
@@ -21,7 +22,7 @@ def recursive_update(
21
22
-------
23
dict: A new dictionary with OpenAPI-compatible transformations applied.
24
"""
- new: dict = {}
25
+ new: dict[str, Any] = {}
26
for key, value in original.items():
27
# recurse into sub-dictionaries
28
if isinstance(value, dict):
0 commit comments