Skip to content

Commit 2376115

Browse files
vivien-applepull[bot]
authored andcommitted
Followup for #27314 to change the type int of the return value of GetDataTypeSizeInBits from int to Optional[int] (#27357)
1 parent 1bc2216 commit 2376115

File tree

1 file changed

+1
-1
lines changed
  • scripts/py_matter_idl/matter_idl/generators

1 file changed

+1
-1
lines changed

scripts/py_matter_idl/matter_idl/generators/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def IsSignedDataType(data_type: DataType) -> bool:
427427
return sized_type.is_signed
428428

429429

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

0 commit comments

Comments
 (0)