Skip to content

Commit 1a31c5c

Browse files
committed
__init__.pyi: Add __getitem__() to stat_result()
Fixes python#2751
1 parent 0559929 commit 1a31c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/os/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class stat_result:
216216
st_mtime_ns: int # time of most recent content modification in nanoseconds
217217
st_ctime_ns: int # platform dependent (time of most recent metadata change on Unix, or the time of creation on Windows) in nanoseconds
218218

219-
def __getitem__(self, key: AnyStr) -> AnyStr: ...
219+
def __getitem__(self, i: int) -> int: ...
220220

221221
# not documented
222222
def __init__(self, tuple: Tuple[int, ...]) -> None: ...

0 commit comments

Comments
 (0)