Skip to content

Commit

Permalink
Fix Python syntax for 3.9 (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
billti authored Dec 9, 2023
1 parent 41ce0cb commit 2ef271e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pip/qsharp/_qsharp.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ class Config:
"""

def __init__(self, target_profile: TargetProfile):
match target_profile:
case TargetProfile.Unrestricted:
target_profile = "unrestricted"
case TargetProfile.Base:
target_profile = "base"
if target_profile == TargetProfile.Unrestricted:
target_profile = "unrestricted"
elif target_profile == TargetProfile.Base:
target_profile = "base"
self._config = {"targetProfile": target_profile}

def __repr__(self):
Expand Down

0 comments on commit 2ef271e

Please sign in to comment.