Skip to content

Commit 0a78786

Browse files
author
Guido van Rossum
committed
Use a separate type variable for unique()
See #1136 (comment)
1 parent 7027c3e commit 0a78786

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/3.4/enum.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import sys
22
from typing import List, Any, TypeVar, Union, Iterable, Iterator, TypeVar, Generic, Type
33

44
_T = TypeVar('_T', bound=Enum)
5+
_S = TypeVar('_S', bound=Type[Enum])
56

67
class EnumMeta(type, Iterable[Enum]):
78
def __iter__(self: Type[_T]) -> Iterator[_T]: ... # type: ignore

0 commit comments

Comments
 (0)