Skip to content

Commit

Permalink
change the type hint to pass the test in python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
maolinml committed Jun 12, 2024
1 parent d1a1b89 commit e32e902
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1415,11 +1415,12 @@
"from copy import deepcopy\n",
"from decimal import Decimal\n",
"from braket.device_schema.quera.quera_ahs_paradigm_properties_v1 import RabiCorrection\n",
"from typing import Union\n",
"\n",
"def customize_performance_for_field(\n",
" performance: Performance,\n",
" name: str,\n",
" value: float | list[tuple[float, float]],\n",
" value: Union[float, list[tuple[float, float]]],\n",
" modification_type: str = \"replace\"\n",
") -> Performance:\n",
" \"\"\"\n",
Expand All @@ -1428,7 +1429,7 @@
" Args:\n",
" performance (Performance): The given noise model\n",
" name (str): The name of the field to be modified\n",
" value (float | list[tuple[float, float]]): The updated values for the modified field\n",
" value (Union[float, list[tuple[float, float]]]): The updated values for the modified field\n",
" modification_type (str): The behavior of the customization. \n",
" If set to \"replace\", the value of the corresponding field will be updated\n",
" If set to \"keep_only\", the value of the corresponding field will be updated, and\n",
Expand Down

0 comments on commit e32e902

Please sign in to comment.