mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-18 07:44:13 +08:00
Expand several stdlib methods to accept unicode or str. (#869)
Expand several stdlib methods to accept unicode or str.
This commit is contained in:
committed by
Jukka Lehtosalo
parent
c8435f4315
commit
6d1edb285d
@@ -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]):
|
||||
|
||||
Reference in New Issue
Block a user