mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 11:21:19 +08:00
Fix stubtest for dateparser (#13474)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user