Skip to content

Commit 97fb265

Browse files
elazarggvanrossum
authored andcommitted
Avoid over-constraining selftype of EnumMeta (#1770)
This is needed for python/mypy#4311, and is sound.
1 parent fc10a94 commit 97fb265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3.4/enum.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
from typing import List, Any, TypeVar, Union, Iterable, Iterator, TypeVar, Generic, Type, Sized, Reversible, Container, Mapping
33
from abc import ABCMeta
44

5-
_T = TypeVar('_T', bound=Enum)
5+
_T = TypeVar('_T')
66
_S = TypeVar('_S', bound=Type[Enum])
77

88
# Note: EnumMeta actually subclasses type directly, not ABCMeta.

0 commit comments

Comments
 (0)