@@ -97,16 +97,16 @@ TMP_MAX = 0 # Undocumented, but used by tempfile
97
97
_PathType = Union [bytes , Text ]
98
98
99
99
class stat_result (NamedTuple ('stat_result' , [
100
- ('st_mode' , int ), # protection bits,
101
- ('st_ino' , int ), # inode number,
102
- ('st_dev' , int ), # device,
103
- ('st_nlink' , int ), # number of hard links,
104
- ('st_uid' , int ), # user id of owner,
105
- ('st_gid' , int ), # group id of owner,
106
- ('st_size' , int ), # size of file, in bytes,
107
- ('st_atime' , float ), # time of most recent access,
108
- ('st_mtime' , float ), # time of most recent content modification,
109
- ('st_ctime' , float )])): # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows)
100
+ ('st_mode' , int ),
101
+ ('st_ino' , int ),
102
+ ('st_dev' , int ),
103
+ ('st_nlink' , int ),
104
+ ('st_uid' , int ),
105
+ ('st_gid' , int ),
106
+ ('st_size' , int ),
107
+ ('st_atime' , float ),
108
+ ('st_mtime' , float ),
109
+ ('st_ctime' , float )])):
110
110
111
111
# For backward compatibility, the return value of stat() is also
112
112
# accessible as a tuple of at least 10 integers giving the most important
@@ -115,26 +115,26 @@ class stat_result(NamedTuple('stat_result', [
115
115
# st_ctime. More items may be added at the end by some implementations.
116
116
117
117
if sys .version_info >= (3 , 3 ):
118
- st_atime_ns = 0 # time of most recent access, in nanoseconds
119
- st_mtime_ns = 0 # time of most recent content modification in nanoseconds
120
- st_ctime_ns = 0 # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows) in nanoseconds
118
+ st_atime_ns = ... # type: int
119
+ st_mtime_ns = ... # type: int
120
+ st_ctime_ns = ... # type: int
121
121
122
122
# On some Unix systems (such as Linux), the following attributes may also
123
123
# be available:
124
- st_blocks = 0 # number of blocks allocated for file
125
- st_blksize = 0 # filesystem blocksize
126
- st_rdev = 0 # type of device if an inode device
127
- st_flags = 0 # user defined flags for file
124
+ st_blocks = ... # type: int
125
+ st_blksize = ... # type: int
126
+ st_rdev = ... # type: int
127
+ st_flags = ... # type: int
128
128
129
129
# On other Unix systems (such as FreeBSD), the following attributes may be
130
130
# available (but may be only filled out if root tries to use them):
131
- st_gen = 0 # file generation number
132
- st_birthtime = 0 # time of file creation
131
+ st_gen = ... # type: int
132
+ st_birthtime = ... # type: int
133
133
134
134
# On Mac OS systems, the following attributes may also be available:
135
- st_rsize = 0
136
- st_creator = 0
137
- st_type = 0
135
+ st_rsize = ... # type: int
136
+ st_creator = ... # type: int
137
+ st_type = ... # type: int
138
138
139
139
statvfs_result = NamedTuple ('statvfs_result' , [
140
140
('f_bsize' , int ),
@@ -233,7 +233,7 @@ def rename(src: _PathType, dst: _PathType) -> None: ...
233
233
def renames (old : _PathType , new : _PathType ) -> None : ...
234
234
def rmdir (path : _PathType ) -> None : ...
235
235
@overload
236
- def stat_float_times (newvalue : bool = ... ) -> None : ...
236
+ def stat_float_times (newvalue : bool ) -> None : ...
237
237
@overload
238
238
def stat_float_times () -> bool : ...
239
239
def stat (path : _PathType ) -> stat_result : ...
0 commit comments