**To Reproduce** https://mypy-play.net/?mypy=latest&python=3.12&gist=7a3708ec5466904d85b33bc6196c0db9 Code copied here: ```python import enum import typing class A(enum.Enum): a = 1 b = 2 def __call__(self)->int: return 2 x=A.a print(x()) # okay if x==A.a: print(x()) # error??? ``` **Expected Behavior** No error happen **Actual Behavior** ``` error: "Literal[A.a]" not callable [misc] ```