From 46a59fc9b135f6ffd1ee2976ccd2c121235af41d Mon Sep 17 00:00:00 2001 From: Yusuke Miyazaki Date: Tue, 12 Jun 2018 03:26:32 +0900 Subject: [PATCH] Add nis stub (#2213) --- stdlib/2and3/nis.pyi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 stdlib/2and3/nis.pyi diff --git a/stdlib/2and3/nis.pyi b/stdlib/2and3/nis.pyi new file mode 100644 index 000000000..87223caf2 --- /dev/null +++ b/stdlib/2and3/nis.pyi @@ -0,0 +1,10 @@ +import sys +from typing import Dict, List + +if sys.platform != 'win32': + def cat(map: str, domain: str = ...) -> Dict[str, str]: ... + def get_default_domain() -> str: ... + def maps(domain: str = ...) -> List[str]: ... + def match(key: str, map: str, domain: str = ...) -> str: ... + + class error(Exception): ...