[CHORE]: x: T = None to x: Optional[T] = None (#24217)
This commit is contained in:
parent
106ab7f2a8
commit
5ab6bc283c
14 changed files with 29 additions and 25 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from collections.abc import Generator
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
|
||||
from core.rag.extractor.watercrawl.client import WaterCrawlAPIClient
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ class WaterCrawlProvider:
|
|||
def __init__(self, api_key, base_url: str | None = None):
|
||||
self.client = WaterCrawlAPIClient(api_key, base_url)
|
||||
|
||||
def crawl_url(self, url, options: dict | Any = None) -> dict:
|
||||
def crawl_url(self, url, options: Optional[dict | Any] = None) -> dict:
|
||||
options = options or {}
|
||||
spider_options = {
|
||||
"max_depth": 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue