Skip to content

Commit 7e8559a

Browse files
authored
Merge pull request lightspeed-core#1666 from tisnik/lcore-2101
LCORE-2101: Added missing type arguments
2 parents a3ee37d + d7b3eed commit 7e8559a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/utils/schema_dumper.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Function to dump the configuration schema into OpenAPI-compatible format."""
22

33
import json
4+
from typing import Any
45

56
from pydantic.json_schema import models_json_schema
67

@@ -9,8 +10,8 @@
910

1011
# pylint: disable=too-many-boolean-expressions
1112
def recursive_update(
12-
original: dict,
13-
) -> dict:
13+
original: dict[str, Any],
14+
) -> dict[str, Any]:
1415
"""Recursively update the schema to be 100% OpenAPI-compatible.
1516
1617
Parameters:
@@ -21,7 +22,7 @@ def recursive_update(
2122
-------
2223
dict: A new dictionary with OpenAPI-compatible transformations applied.
2324
"""
24-
new: dict = {}
25+
new: dict[str, Any] = {}
2526
for key, value in original.items():
2627
# recurse into sub-dictionaries
2728
if isinstance(value, dict):

0 commit comments

Comments
 (0)