From 1cd31097911c41e150870d47042aa009df9f3585 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Tue, 20 Jun 2023 20:44:18 +0200 Subject: [PATCH] Followup for #27314 to change the type int of the return value of GetDataTypeSizeInBits from int to Optional[int] (#27357) --- scripts/py_matter_idl/matter_idl/generators/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/types.py b/scripts/py_matter_idl/matter_idl/generators/types.py index dd9ed047584012..a22275bf29bb0f 100644 --- a/scripts/py_matter_idl/matter_idl/generators/types.py +++ b/scripts/py_matter_idl/matter_idl/generators/types.py @@ -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. """