Add dateparser module (#4106)

Based on PR 3704 by @xcthulhu (Matthew Doty)
This commit is contained in:
Sebastian Rittau
2020-05-28 03:53:16 +02:00
committed by GitHub
parent 02e1a68a56
commit 694fa80596

15
third_party/2and3/dateparser.pyi vendored Normal file
View File

@@ -0,0 +1,15 @@
import datetime
from typing import Any, List, Mapping, Optional, Set, Tuple, Union
__version__: str
def parse(
date_string: str,
date_formats: Optional[Union[List[str], Tuple[str], Set[str]]] = ...,
languages: Optional[Union[List[str], Tuple[str], Set[str]]] = ...,
locales: Optional[Union[List[str], Tuple[str], Set[str]]] = ...,
region: Optional[str] = ...,
settings: Optional[Mapping[str, Any]] = ...,
) -> Optional[datetime.datetime]: ...
def __getattr__(name: str) -> Any: ... # incomplete