Describe the Bug
from enum import StrEnum
class T(StrEnum):
A = "a"
def f(t: T):
...
f("a")
current:
Argument Literal['a'] is not assignable to parameter t with type T in function f [bad-argument-type]
hope:
function f require t: T, but get "a", do you mean T.A ?
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Describe the Bug
current:
Argument
Literal['a']is not assignable to parametertwith typeTin functionf[bad-argument-type]hope:
function f require
t: T, but get "a", do you meanT.A?Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response