mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
update stubs file
This commit is contained in:
parent
008769d296
commit
95157427c2
1 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,9 @@
|
||||||
|
from pathlib import Path
|
||||||
from typing import Optional, Dict, Union, Tuple, Callable, Pattern, Type, Any
|
from typing import Optional, Dict, Union, Tuple, Callable, Pattern, Type, Any
|
||||||
from mypy_extensions import TypedDict
|
from mypy_extensions import TypedDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimpleConfigValue = Union[str, bool, int, None, Pattern, Dict[str, Any]]
|
SimpleConfigValue = Union[str, bool, int, None, Pattern, Dict[str, Any]]
|
||||||
SimpleConfigValueDict = Dict[str, SimpleConfigValue]
|
SimpleConfigValueDict = Dict[str, SimpleConfigValue]
|
||||||
SimpleConfigValueGetter = Callable[[], SimpleConfigValue]
|
SimpleConfigValueGetter = Callable[[], SimpleConfigValue]
|
||||||
|
@ -31,8 +33,8 @@ class ConfigDict(BaseConfig, total=False):
|
||||||
SHOW_PROGRESS: bool
|
SHOW_PROGRESS: bool
|
||||||
IN_DOCKER: bool
|
IN_DOCKER: bool
|
||||||
|
|
||||||
OUTPUT_DIR: Optional[str]
|
OUTPUT_DIR: Union[str, Path, None]
|
||||||
CONFIG_FILE: Optional[str]
|
CONFIG_FILE: Union[str, Path, None]
|
||||||
ONLY_NEW: bool
|
ONLY_NEW: bool
|
||||||
TIMEOUT: int
|
TIMEOUT: int
|
||||||
MEDIA_TIMEOUT: int
|
MEDIA_TIMEOUT: int
|
||||||
|
@ -70,8 +72,8 @@ class ConfigDict(BaseConfig, total=False):
|
||||||
CURL_USER_AGENT: str
|
CURL_USER_AGENT: str
|
||||||
WGET_USER_AGENT: str
|
WGET_USER_AGENT: str
|
||||||
CHROME_USER_AGENT: str
|
CHROME_USER_AGENT: str
|
||||||
COOKIES_FILE: Optional[str]
|
COOKIES_FILE: Union[str, Path, None]
|
||||||
CHROME_USER_DATA_DIR: Optional[str]
|
CHROME_USER_DATA_DIR: Union[str, Path, None]
|
||||||
CHROME_HEADLESS: bool
|
CHROME_HEADLESS: bool
|
||||||
CHROME_SANDBOX: bool
|
CHROME_SANDBOX: bool
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue