[dateparser] Update to ~=1.2.2 (#14346)

This commit is contained in:
Brian Schubert
2025-06-26 21:01:08 -04:00
committed by GitHub
parent 47cfbeeb76
commit 0c155fe92c
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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