Skip to content

Commit

Permalink
Remove match statement from Custom Types documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MJJoyce committed Apr 1, 2024
1 parent 903bb22 commit 69ad7fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/source/data_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ Consider the following example which creates a custom 24-bit MSB type.
class MyCustomTypes(dtype.CustomTypes):
def get(self, typename: str) -> Optional[dtype.PrimitiveType]:
match typename:
case 'My24BitMSB':
return My24BitMSB()
if typename == 'My24BitMSB':
return My24BitMSB()
return None
Expand Down

0 comments on commit 69ad7fe

Please sign in to comment.