From a994c4719827cbe72d31d26c0cf6e4d3b1948b77 Mon Sep 17 00:00:00 2001 From: Matt Gilson Date: Sun, 8 Apr 2018 15:41:04 -0400 Subject: [PATCH] Fixup the boto stubs to allow `mypy --strict`. (#2032) --- third_party/2and3/boto/compat.pyi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/third_party/2and3/boto/compat.pyi b/third_party/2and3/boto/compat.pyi index b0534a424..ef4a7c6d5 100644 --- a/third_party/2and3/boto/compat.pyi +++ b/third_party/2and3/boto/compat.pyi @@ -1,10 +1,17 @@ +import sys + from typing import Any from base64 import encodestring as encodebytes from six.moves import http_client expanduser = ... # type: Any -StandardError = ... # type: Any + +if sys.version_info >= (3, 0): + StandardError = Exception +else: + StandardError = __builtins__.StandardError + long_type = ... # type: Any unquote_str = ... # type: Any parse_qs_safe = ... # type: Any