From 8539624f05663a876efc0ef63c5d47c40ed702ee Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 11 Jan 2016 16:04:44 -0800 Subject: [PATCH] Fix Reversible.__reversed__() return type. (I should do more testing.) --- stdlib/2.7/typing.pyi | 2 +- stdlib/3/typing.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/typing.pyi b/stdlib/2.7/typing.pyi index edd0a8d00..a04ad24d5 100644 --- a/stdlib/2.7/typing.pyi +++ b/stdlib/2.7/typing.pyi @@ -62,7 +62,7 @@ class SupportsRound(Generic[_T]): class Reversible(Generic[_T_co]): @abstractmethod - def __reversed__(self) -> Iterator[_T]: ... + def __reversed__(self) -> Iterator[_T_co]: ... class Sized(metaclass=ABCMeta): @abstractmethod diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 783874d47..7181de306 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -72,7 +72,7 @@ class SupportsRound(Generic[_T]): class Reversible(Generic[_T_co]): @abstractmethod - def __reversed__(self) -> Iterator[_T]: ... + def __reversed__(self) -> Iterator[_T_co]: ... class Sized(metaclass=ABCMeta): @abstractmethod