-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed as not planned
Labels
as designedNot a bug, working as intendedNot a bug, working as intendedbugSomething isn't workingSomething isn't working
Description
Describe the bug
See example code, the last line shows a warning, however it should not.
Code or Screenshots
from collections.abc import Sequence
from enum import StrEnum
from typing import Self
class Test(StrEnum):
A = "a"
B = "b"
@classmethod
def test(cls) -> Sequence[Self]:
return [cls.A, cls.B] # shows warning, seems it should notVS Code extension or command-line
Pylance v2024.4.101 (pre-release), pyright 1.1.358.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
as designedNot a bug, working as intendedNot a bug, working as intendedbugSomething isn't workingSomething isn't working