@@ -14,52 +14,29 @@ class parserinfo(object):
14
14
PERTAIN = ... # type: List[str]
15
15
TZOFFSET = ... # type: Dict[str, int]
16
16
17
- def __init__ (self , dayfirst : bool = ..., yearfirst : bool = ...) -> None :
18
- ...
19
-
20
- def jump (self , name : str ) -> bool :
21
- ...
22
-
23
- def weekday (self , name : str ) -> str :
24
- ...
25
-
26
- def month (self , name : str ) -> str :
27
- ...
28
-
29
- def hms (self , name : str ) -> str :
30
- ...
31
-
32
- def ampm (self , name : str ) -> str :
33
- ...
34
-
35
- def pertain (self , name : str ) -> bool :
36
- ...
37
-
38
- def utczone (self , name : str ) -> bool :
39
- ...
40
-
41
- def tzoffset (self , name : str ) -> int :
42
- ...
43
-
44
- def convertyear (self , year : int ) -> int :
45
- ...
46
-
47
- def validate (self , year : datetime ) -> bool :
48
- ...
17
+ def __init__ (self , dayfirst : bool = ..., yearfirst : bool = ...) -> None : ...
18
+ def jump (self , name : str ) -> bool : ...
19
+ def weekday (self , name : str ) -> str : ...
20
+ def month (self , name : str ) -> str : ...
21
+ def hms (self , name : str ) -> str : ...
22
+ def ampm (self , name : str ) -> str : ...
23
+ def pertain (self , name : str ) -> bool : ...
24
+ def utczone (self , name : str ) -> bool : ...
25
+ def tzoffset (self , name : str ) -> int : ...
26
+ def convertyear (self , year : int ) -> int : ...
27
+ def validate (self , year : datetime ) -> bool : ...
49
28
50
29
51
30
class parser (object ):
52
- def __init__ (self , info : parserinfo = ...) -> None :
53
- ...
31
+ def __init__ (self , info : parserinfo = ...) -> None : ...
54
32
55
33
def parse (
56
34
self ,
57
35
timestr : str ,
58
36
default : Optional [datetime ],
59
37
ignoretz : bool = ...,
60
38
tzinfos = ...,
61
- ) -> datetime :
62
- ...
39
+ ) -> datetime : ...
63
40
64
41
DEFAULTPARSER = ... # type: parser
65
42
0 commit comments