Skip to content

Commit

Permalink
Avoid over-constraining selftype of EnumMeta
Browse files Browse the repository at this point in the history
This is needed for python/mypy#4311, and is sound.
  • Loading branch information
elazarg authored Dec 4, 2017
1 parent fc10a94 commit 5be2d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/3.4/enum.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sys
from typing import List, Any, TypeVar, Union, Iterable, Iterator, TypeVar, Generic, Type, Sized, Reversible, Container, Mapping
from abc import ABCMeta

_T = TypeVar('_T', bound=Enum)
_T = TypeVar('_T')
_S = TypeVar('_S', bound=Type[Enum])

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

0 comments on commit 5be2d7e

Please sign in to comment.