Add st_file_attributes to stat_result for Windows (#4156)

This member is documented at https://docs.python.org/3/library/os.html#os.stat_result.st_file_attributes and https://docs.python.org/3/whatsnew/3.5.html#os

Co-authored-by: hauntsaninja <>
This commit is contained in:
Kevin Wojniak
2020-06-01 23:53:11 -07:00
committed by GitHub
parent c879392b02
commit 17aa20cd95

View File

@@ -216,6 +216,8 @@ class stat_result:
st_ctime_ns: int # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows) in nanoseconds
if sys.version_info >= (3, 8) and sys.platform == "win32":
st_reparse_tag: int
if sys.version_info >= (3, 5) and sys.platform == "win32":
st_file_attributes: int
def __getitem__(self, i: int) -> int: ...