Skip to content

[dateparser] Update to ~=1.2.2 #14346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/dateparser/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "1.2.*"
version = "~=1.2.2"
upstream_repository = "https://github.com/scrapinghub/dateparser"

[tool.stubtest]
Expand Down
2 changes: 2 additions & 0 deletions stubs/dateparser/dateparser/search/search.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from collections.abc import Collection
from typing import Any

from ..date import _DetectLanguagesFunction
Expand Down Expand Up @@ -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: ...
5 changes: 5 additions & 0 deletions stubs/dateparser/dateparser/timezone_parser.pyi
Original file line number Diff line number Diff line change
@@ -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: ...
Expand All @@ -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