From 17aa20cd95da0b921dbdb3d31ef9735e9ad9dbc4 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 1 Jun 2020 23:53:11 -0700 Subject: [PATCH] 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 <> --- stdlib/3/os/__init__.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/3/os/__init__.pyi b/stdlib/3/os/__init__.pyi index 8602bfbee..dfc542567 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -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: ...