fix: update dependencies (#469)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2026-01-13 11:39:40 +01:00
committed by GitHub
parent 416312a41b
commit 8eddd589bb
4 changed files with 7037 additions and 5854 deletions

View File

@@ -1,3 +1,4 @@
import inspect
import re
from typing import Annotated, Any, Union, get_args, get_origin
@@ -152,7 +153,9 @@ def generate_model_doc(model: type[BaseModel]) -> str:
doc += f"| `{field_name}` | {field_type} | {description} |\n"
for field_type in _unroll_types(base_type):
if issubclass(field_type, BaseModel):
if inspect.isclass(field_type) and issubclass(
field_type, BaseModel
):
models_stack.append(field_type)
# stop iterating the base classes