Skip to content

Commit 51959f0

Browse files
rchen152matthiaskramm
authored andcommitted
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.
1 parent aaa83a7 commit 51959f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stdlib/2/types.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from typing import (
55
Any, Callable, Dict, Iterable, Iterator, List, Optional,
6-
Tuple, TypeVar, Union, overload,
6+
Tuple, Type, TypeVar, Union, overload,
77
)
88

99
_T = TypeVar('_T')
@@ -19,11 +19,12 @@ BooleanType = bool
1919
ComplexType = complex
2020
StringType = str
2121
UnicodeType = unicode
22-
StringTypes = (StringType, UnicodeType)
22+
StringTypes = ... # type: Tuple[Type[StringType], Type[UnicodeType]]
2323
BufferType = buffer
2424
TupleType = tuple
2525
ListType = list
26-
DictType = DictionaryType = dict
26+
DictType = dict
27+
DictionaryType = dict
2728

2829
class _Cell:
2930
cell_contents = ... # type: Any

0 commit comments

Comments
 (0)