From 0bf23b37276064b5b38329a730feffc6326c6eb6 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Mon, 13 Mar 2017 15:38:38 +0100 Subject: [PATCH] Add __annotations__ to Python 3 (#990) --- stdlib/3/builtins.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 994720c32..ef6e29410 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -35,6 +35,8 @@ class object: __dict__ = ... # type: Dict[str, Any] __slots__ = ... # type: Optional[Union[str, Iterable[str]]] __module__ = ... # type: str + if sys.version_info >= (3, 6): + __annotations__ = ... # type: Dict[str, Any] def __init__(self) -> None: ... def __new__(cls) -> Any: ... @@ -552,6 +554,7 @@ class function: __qualname__ = ... # type: str __module__ = ... # type: str __code__ = ... # type: Any + __annotations__ = ... # type: Dict[str, Any] class list(MutableSequence[_T], Generic[_T]): @overload