Skip to content

Commit

Permalink
Followup for #27314 to change the type int of the return value of Get…
Browse files Browse the repository at this point in the history
…DataTypeSizeInBits from int to Optional[int] (#27357)
  • Loading branch information
vivien-apple authored and pull[bot] committed Apr 8, 2024
1 parent e865253 commit 1cd3109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/py_matter_idl/matter_idl/generators/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def IsSignedDataType(data_type: DataType) -> bool:
return sized_type.is_signed


def GetDataTypeSizeInBits(data_type: DataType) -> int:
def GetDataTypeSizeInBits(data_type: DataType) -> Optional[int]:
"""
Returns the size in bits for a given data type or None if the data type can not be found.
"""
Expand Down

0 comments on commit 1cd3109

Please sign in to comment.