mirror of
https://github.com/docling-project/docling-serve.git
synced 2026-04-27 03:36:12 +00:00
fix: update dependencies (#469)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user