From 164aa21fa11d531f1d5930b090c797b335a18a26 Mon Sep 17 00:00:00 2001 From: Ashwini Chaudhary Date: Sun, 18 Mar 2018 10:52:25 +0530 Subject: [PATCH] Added stub for dircache(py2) (#1510) --- stdlib/2/dircache.pyi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 stdlib/2/dircache.pyi diff --git a/stdlib/2/dircache.pyi b/stdlib/2/dircache.pyi new file mode 100644 index 000000000..ac6732b6c --- /dev/null +++ b/stdlib/2/dircache.pyi @@ -0,0 +1,10 @@ +# Source: https://hg.python.org/cpython/file/2.7/Lib/dircache.py + +from typing import List, MutableSequence, Text, Union + +def reset() -> None: ... +def listdir(path: Text) -> List[str]: ... + +opendir = listdir + +def annotate(head: Text, list: Union[MutableSequence[str], MutableSequence[Text], MutableSequence[Union[str, Text]]]) -> None: ...