mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 01:45:59 +08:00
Add dateparser module (#4106)
Based on PR 3704 by @xcthulhu (Matthew Doty)
This commit is contained in:
15
third_party/2and3/dateparser.pyi
vendored
Normal file
15
third_party/2and3/dateparser.pyi
vendored
Normal 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
|
||||
Reference in New Issue
Block a user