From 51959f09c7e658a299a092150833ad0fa5fd0f5f Mon Sep 17 00:00:00 2001 From: rchen152 Date: Wed, 12 Apr 2017 16:11:03 -0700 Subject: [PATCH] Change types.pyi syntax that pytype can't parse. (#1157) * Fix a few return types in stdlib/2/inspect.pyi. * Rename _FrameRecord to _FrameInfo * Correct some return types in itertools.pyi from Iterable to Iterator. * Change types.pyi syntax that pytype can't parse. --- stdlib/2/types.pyi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stdlib/2/types.pyi b/stdlib/2/types.pyi index 54e8b7899..12f38829c 100644 --- a/stdlib/2/types.pyi +++ b/stdlib/2/types.pyi @@ -3,7 +3,7 @@ from typing import ( Any, Callable, Dict, Iterable, Iterator, List, Optional, - Tuple, TypeVar, Union, overload, + Tuple, Type, TypeVar, Union, overload, ) _T = TypeVar('_T') @@ -19,11 +19,12 @@ BooleanType = bool ComplexType = complex StringType = str UnicodeType = unicode -StringTypes = (StringType, UnicodeType) +StringTypes = ... # type: Tuple[Type[StringType], Type[UnicodeType]] BufferType = buffer TupleType = tuple ListType = list -DictType = DictionaryType = dict +DictType = dict +DictionaryType = dict class _Cell: cell_contents = ... # type: Any