mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
fix: In DocumentConverter.convert_string() make nullable name parameter actually optional
This commit is contained in:
@@ -310,7 +310,7 @@ class DocumentConverter:
|
|||||||
self,
|
self,
|
||||||
content: str,
|
content: str,
|
||||||
format: InputFormat,
|
format: InputFormat,
|
||||||
name: Optional[str],
|
name: Optional[str] = None,
|
||||||
) -> ConversionResult:
|
) -> ConversionResult:
|
||||||
name = name or datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
name = name or datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user