Skip to content

Commit

Permalink
Add a small test for this
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Jul 11, 2023
1 parent c7a5068 commit 804d3f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test-data/unit/check-enum.test
Original file line number Diff line number Diff line change
Expand Up @@ -2125,3 +2125,15 @@ class AllPartialList(Enum):

def check(self) -> None:
reveal_type(self.value) # N: Revealed type is "builtins.list[Any]"

[case testEnumValueWithTupleType]
import enum
from typing import Tuple

class Color(enum.Enum):
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)

x: Color
reveal_type(x.value) # N: Revealed type is "Any"
[builtins fixtures/tuple.pyi]

0 comments on commit 804d3f9

Please sign in to comment.