-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionenhancement requestNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I would like to be able to be able to enable an error when a match
does not cover all cases.
Describe the solution you'd like
I would like an option to generate an error when a match
statement is not exhaustive. For example, this match
statement would error with such an option enabled because the int
case is not handled.
IntOrStr = int | str
def handle(x : IntOrStr) -> None:
match x:
case str(s):
print(f"Handled {s}")
dogweather, schneiderfelipe, praveenkulkarni1996, zink-chimaera, KevinMGranger and 2 more
Metadata
Metadata
Assignees
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionenhancement requestNew feature or requestNew feature or request