From 1a37368cc00d1c9a224220dff1cdc35df3d725ea Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Sat, 9 Feb 2019 15:07:10 +0000 Subject: [PATCH] __init__.pyi: Add __getitem__() to stat_result() (#2753) Fixes #2751 --- 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 e09284ead..403093ed3 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -216,6 +216,8 @@ class stat_result: st_mtime_ns: int # time of most recent content modification in nanoseconds st_ctime_ns: int # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows) in nanoseconds + def __getitem__(self, i: int) -> int: ... + # not documented def __init__(self, tuple: Tuple[int, ...]) -> None: ...