mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
committed by
Guido van Rossum
parent
8df19841bb
commit
f5f349ca8f
0
third_party/3/dateutil/__init__.pyi
vendored
Normal file
0
third_party/3/dateutil/__init__.pyi
vendored
Normal file
52
third_party/3/dateutil/parser.pyi
vendored
Normal file
52
third_party/3/dateutil/parser.pyi
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
from typing import List, Tuple, Optional, Callable, Union, IO, Any
|
||||
from datetime import datetime
|
||||
|
||||
__all__ = ... # type: List[str]
|
||||
|
||||
|
||||
class parserinfo(object):
|
||||
JUMP = ... # type: List[str]
|
||||
WEEKDAYS = ... # type: List[Tuple[str, str]]
|
||||
MONTHS = ... # type: List[Tuple[str, str]]
|
||||
HMS = ... # type: List[Tuple[str, str, str]]
|
||||
AMPM = ... # type: List[Tuple[str, str, str]]
|
||||
UTCZONE = ... # type: List[str]
|
||||
PERTAIN = ... # type: List[str]
|
||||
TZOFFSET = ... # type: Dict[str, int]
|
||||
|
||||
def __init__(self, dayfirst: bool=..., yearfirst: bool=...) -> None: ...
|
||||
def jump(self, name: str) -> bool: ...
|
||||
def weekday(self, name: str) -> str: ...
|
||||
def month(self, name: str) -> str: ...
|
||||
def hms(self, name: str) -> str: ...
|
||||
def ampm(self, name: str) -> str: ...
|
||||
def pertain(self, name: str) -> bool: ...
|
||||
def utczone(self, name: str) -> bool: ...
|
||||
def tzoffset(self, name: str) -> int: ...
|
||||
def convertyear(self, year: int) -> int: ...
|
||||
def validate(self, year: datetime) -> bool: ...
|
||||
|
||||
|
||||
class parser(object):
|
||||
def __init__(self, info: parserinfo=...) -> None: ...
|
||||
|
||||
def parse(
|
||||
self,
|
||||
timestr: Union[str, bytes, IO[Any]],
|
||||
default: Optional[datetime],
|
||||
ignoretz: bool=...,
|
||||
tzinfos =...,
|
||||
) -> datetime: ...
|
||||
|
||||
DEFAULTPARSER = ... # type: parser
|
||||
|
||||
|
||||
def parse(timestr, parserinfo: parserinfo=..., **kwargs) -> datetime:
|
||||
...
|
||||
|
||||
|
||||
class _tzparser(object):
|
||||
...
|
||||
|
||||
|
||||
DEFAULTTZPARSER = ... # type: _tzparser
|
||||
Reference in New Issue
Block a user