From 049b8f77f1f3e7e5f6372dd276fe6988611f28e1 Mon Sep 17 00:00:00 2001 From: Adam Fourney Date: Tue, 11 Feb 2025 12:34:46 -0800 Subject: [PATCH] Fix docstring. --- packages/markitdown/src/markitdown/_markitdown.py | 1 + packages/markitdown/src/markitdown/converters/_base.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/markitdown/src/markitdown/_markitdown.py b/packages/markitdown/src/markitdown/_markitdown.py index 8669ad5..297f554 100644 --- a/packages/markitdown/src/markitdown/_markitdown.py +++ b/packages/markitdown/src/markitdown/_markitdown.py @@ -111,6 +111,7 @@ class MarkItDown: """ Enable and register built-in converters. Built-in converters are enabled by default. + This method should only be called once, if built-ins were initially disabled. """ if not self._builtins_enabled: # TODO: Move these into converter constructors diff --git a/packages/markitdown/src/markitdown/converters/_base.py b/packages/markitdown/src/markitdown/converters/_base.py index 6df37f6..3947797 100644 --- a/packages/markitdown/src/markitdown/converters/_base.py +++ b/packages/markitdown/src/markitdown/converters/_base.py @@ -37,7 +37,6 @@ class DocumentConverter: We have tight control over the order of built-in converters, but plugins can register converters in any order. A converter's priority field reasserts some control over the order of converters. - This method should only be called once, if built-ins were initially disabled. Plugins can register converters with any priority, to appear before or after the built-ins. For example, a plugin with priority 9 will run