Skip to content

remove or downgrade the already appear branch in match case #3015

@asukaminato0721

Description

@asukaminato0721

Describe the Bug

Image

I think BB should appear first

from enum import StrEnum, auto
class A(StrEnum):
    AA = auto()
    BB = auto()

def f(a: A):
    match a:
        case A.AA:
            ...
        case A.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Labels

language-serverIssues specific to our IDE integration rather than type checking
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions