Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
egparedes committed Nov 20, 2024
1 parent aa164bf commit ce32fd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model/common/src/icon4py/model/common/utils/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def __getitem__(self, index: Literal[0, 1]) -> T:
raise IndexError(f"Pair index out of range: {index}")

def __setitem__(self, index: Literal[0, 1], value: T) -> None:
match index:
# Go through the attribute descriptors to respect the read-only indication
`match index:
case 0:
attr_name = self.__first_attr_name
case 1:
Expand Down

0 comments on commit ce32fd9

Please sign in to comment.