diff --git a/libs/langchain/langchain/document_loaders/recursive_url_loader.py b/libs/langchain/langchain/document_loaders/recursive_url_loader.py index 60ee27013e9b5..ea5e730d9e78b 100644 --- a/libs/langchain/langchain/document_loaders/recursive_url_loader.py +++ b/libs/langchain/langchain/document_loaders/recursive_url_loader.py @@ -6,10 +6,10 @@ from typing import ( TYPE_CHECKING, Callable, + Iterable, Iterator, List, Optional, - Sequence, Set, Union, ) @@ -58,7 +58,7 @@ def __init__( use_async: Optional[bool] = None, extractor: Optional[Callable[[str], str]] = None, metadata_extractor: Optional[Callable[[str, str], str]] = None, - exclude_dirs: Optional[Sequence[str]] = (), + exclude_dirs: Optional[Iterable[str]] = None, timeout: Optional[int] = 10, prevent_outside: Optional[bool] = True, link_regex: Union[str, re.Pattern, None] = None,