From 44e3fb93b6ce0c8eedb813a360ce948e103c4d61 Mon Sep 17 00:00:00 2001 From: soulmachine Date: Tue, 17 Dec 2024 08:13:02 -0800 Subject: [PATCH] Made cookies a keyword-only parameter to keep backward compatibility --- .../langchain_community/document_loaders/confluence.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/community/langchain_community/document_loaders/confluence.py b/libs/community/langchain_community/document_loaders/confluence.py index 8cc1c44a49e16..8af05fbe93fde 100644 --- a/libs/community/langchain_community/document_loaders/confluence.py +++ b/libs/community/langchain_community/document_loaders/confluence.py @@ -93,8 +93,6 @@ class ConfluenceLoader(BaseLoader): :type oauth2: dict, optional :param token: _description_, defaults to None :type token: str, optional - :param cookies: _description_, defaults to {} - :type cookies: dict, optional :param cloud: _description_, defaults to True :type cloud: bool, optional :param number_of_retries: How many times to retry, defaults to 3 @@ -105,6 +103,8 @@ class ConfluenceLoader(BaseLoader): :type max_retry_seconds: Optional[int], optional :param confluence_kwargs: additional kwargs to initialize confluence with :type confluence_kwargs: dict, optional + :param cookies: _description_, defaults to {} + :type cookies: dict, optional :param space_key: Space key retrieved from a confluence URL, defaults to None :type space_key: Optional[str], optional :param page_ids: List of specific page IDs to load, defaults to None @@ -154,13 +154,13 @@ def __init__( session: Optional[requests.Session] = None, oauth2: Optional[dict] = None, token: Optional[str] = None, - cookies: Optional[dict] = None, cloud: Optional[bool] = True, number_of_retries: Optional[int] = 3, min_retry_seconds: Optional[int] = 2, max_retry_seconds: Optional[int] = 10, confluence_kwargs: Optional[dict] = None, *, + cookies: Optional[dict] = None, space_key: Optional[str] = None, page_ids: Optional[List[str]] = None, label: Optional[str] = None,