mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-23 17:28:38 +08:00
[dateparser] Update to ~=1.2.2 (#14346)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
version = "1.2.*"
|
||||
version = "~=1.2.2"
|
||||
upstream_repository = "https://github.com/scrapinghub/dateparser"
|
||||
|
||||
[tool.stubtest]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from collections.abc import Collection
|
||||
from typing import Any
|
||||
|
||||
from ..date import _DetectLanguagesFunction
|
||||
@@ -33,3 +34,4 @@ class DateSearchWithDetection:
|
||||
def search_dates(
|
||||
self, text, languages=None, settings=None, detect_languages_function: _DetectLanguagesFunction | None = None
|
||||
): ...
|
||||
def preprocess_text(self, text: str, languages: Collection[str]) -> str: ...
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import pathlib
|
||||
import re
|
||||
from collections.abc import Generator
|
||||
from datetime import datetime, timedelta, tzinfo
|
||||
from typing import Final
|
||||
|
||||
class StaticTzInfo(tzinfo):
|
||||
def __init__(self, name: str, offset: timedelta) -> None: ...
|
||||
@@ -17,3 +19,6 @@ def build_tz_offsets(search_regex_parts: list[str]) -> Generator[tuple[str, dict
|
||||
def get_local_tz_offset() -> timedelta: ...
|
||||
|
||||
local_tz_offset: timedelta
|
||||
|
||||
CACHE_PATH: Final[pathlib.Path]
|
||||
current_hash: int | None
|
||||
|
||||
Reference in New Issue
Block a user