-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Labels
Description
Describe the Bug
I expect no errors in the following code, but getting the error shown in comments
X = ["a", "b", "c"]
Y = "d"
if Y in [*X, "d", "e", "f"]: # ERROR Expected a type form, got instance of `list[str]` [not-a-type]
pass
# Expected a type form, got instance of `list[str]`
z = "g" if Y in [*X, "d", "e", "f"] else "h"Sandbox Link
(Only applicable for extension issues) IDE Information
No response