Expand several stdlib methods to accept unicode or str. (#869)

Expand several stdlib methods to accept unicode or str.
This commit is contained in:
Lucas Wiman
2017-01-27 08:03:25 -08:00
committed by Jukka Lehtosalo
parent c8435f4315
commit 6d1edb285d
3 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ _KT = TypeVar('_KT')
_VT = TypeVar('_VT')
# namedtuple is special-cased in the type checker; the initializer is ignored.
def namedtuple(typename: str, field_names: Union[str, Iterable[Any]], *,
def namedtuple(typename: Union[str, unicode], field_names: Union[str, unicode, Iterable[Any]], *,
verbose: bool = ..., rename: bool = ...) -> Type[tuple]: ...
class deque(Sized, Iterable[_T], Reversible[_T], Generic[_T]):