From c8c6271365195b08e0c5eb6ed0b7fa792bbef986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Hanuszczak?= Date: Sat, 9 Feb 2019 19:06:07 +0100 Subject: [PATCH] Make `NamedTuple` accept `Text` names (#2762) Closes #2761 --- stdlib/2/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2/typing.pyi b/stdlib/2/typing.pyi index b028769a7..7049d10bb 100644 --- a/stdlib/2/typing.pyi +++ b/stdlib/2/typing.pyi @@ -457,7 +457,7 @@ def cast(tp: str, obj: Any) -> Any: ... class NamedTuple(tuple): _fields = ... # type: Tuple[str, ...] - def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., *, + def __init__(self, typename: Text, fields: Iterable[Tuple[Text, Any]] = ..., *, verbose: bool = ..., rename: bool = ..., **kwargs: Any) -> None: ... @classmethod