Fix stubtest for dateparser (#13474)

This commit is contained in:
Alex Waygood
2025-02-07 19:20:51 +00:00
committed by GitHub
parent 5caaf2e1fb
commit 94ac7c44d2
3 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
from abc import abstractmethod
from typing import Any
from dateparser.parser import _parser
@@ -16,5 +17,7 @@ class non_gregorian_parser(_parser):
non_gregorian_date_cls: Any
@classmethod
def to_latin(cls, source): ...
@abstractmethod
def handle_two_digit_year(self, year: int) -> int: ...
@classmethod
def parse(cls, datestring, settings): ...

View File

@@ -24,3 +24,4 @@ class hijri_parser(non_gregorian_parser):
default_month: int
default_day: int
non_gregorian_date_cls: Any
def handle_two_digit_year(self, year: int) -> int: ...

View File

@@ -15,3 +15,4 @@ class jalali_parser(non_gregorian_parser):
default_month: int
default_day: int
non_gregorian_date_cls: Any
def handle_two_digit_year(self, year: int) -> int: ...