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 optional (#2660)
* fix: In DocumentConverter.convert_string() make nullable name parameter actually optional
* DCO Remediation Commit for Cristi Burcă <mail@scribu.net>
I, Cristi Burcă <mail@scribu.net>, hereby add my Signed-off-by to this commit: 2b256e3528
Signed-off-by: Cristi Burcă <mail@scribu.net>
---------
Signed-off-by: Cristi Burcă <mail@scribu.net>
This commit is contained in:
@@ -310,7 +310,7 @@ class DocumentConverter:
|
||||
self,
|
||||
content: str,
|
||||
format: InputFormat,
|
||||
name: Optional[str],
|
||||
name: Optional[str] = None,
|
||||
) -> ConversionResult:
|
||||
name = name or datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user