File tree 1 file changed +21
-22
lines changed 1 file changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,24 @@ if sys.version_info >= (3, 3) and sys.platform != 'win32':
31
31
if sys .version_info >= (3 , 8 ) and sys .platform == "darwin" :
32
32
CLOCK_UPTIME_RAW : int
33
33
34
+ class _struct_time (NamedTuple ):
35
+ tm_year : int
36
+ tm_mon : int
37
+ tm_mday : int
38
+ tm_hour : int
39
+ tm_min : int
40
+ tm_sec : int
41
+ tm_wday : int
42
+ tm_yday : int
43
+ tm_isdst : int
44
+
45
+ @property
46
+ def n_fields (self ) -> int : ...
47
+ @property
48
+ def n_sequence_fields (self ) -> int : ...
49
+ @property
50
+ def n_unnamed_fields (self ) -> int : ...
34
51
if sys .version_info >= (3 , 3 ):
35
- class _struct_time (NamedTuple ):
36
- tm_year : int
37
- tm_mon : int
38
- tm_mday : int
39
- tm_hour : int
40
- tm_min : int
41
- tm_sec : int
42
- tm_wday : int
43
- tm_yday : int
44
- tm_isdst : int
45
- tm_zone : str
46
- tm_gmtoff : int
47
52
class struct_time (_struct_time ):
48
53
def __init__ (
49
54
self ,
@@ -63,17 +68,11 @@ if sys.version_info >= (3, 3):
63
68
],
64
69
_arg : Any = ...,
65
70
) -> struct_time : ...
71
+ @property
72
+ def tm_zone (self ) -> str : ...
73
+ @property
74
+ def tm_gmtoff (self ) -> int : ...
66
75
else :
67
- class _struct_time (NamedTuple ):
68
- tm_year : int
69
- tm_mon : int
70
- tm_mday : int
71
- tm_hour : int
72
- tm_min : int
73
- tm_sec : int
74
- tm_wday : int
75
- tm_yday : int
76
- tm_isdst : int
77
76
class struct_time (_struct_time ):
78
77
def __init__ (self , o : _TimeTuple , _arg : Any = ...) -> None : ...
79
78
def __new__ (cls , o : _TimeTuple , _arg : Any = ...) -> struct_time : ...
You can’t perform that action at this time.
0 commit comments