Skip to content

Commit dc88770

Browse files
committed
Resolving mypy issues
1 parent c13545d commit dc88770

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/controller/python/matter/ChipDeviceCtrl.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,10 @@ def _prepare_write_attribute_requests(
16341634
return attrs
16351635

16361636
async def TestOnlyWriteAttributeWithMismatchedTimedRequestField(self, nodeid: int,
1637-
attributes: typing.List[typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor]],
1637+
attributes: typing.List[typing.Union[
1638+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor],
1639+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor, int]
1640+
]],
16381641
timedRequestTimeoutMs: int,
16391642
timedRequestFieldValue: bool,
16401643
interactionTimeoutMs: typing.Optional[int] = None, busyWaitMs: typing.Optional[int] = None,
@@ -1805,7 +1808,10 @@ async def WriteAttribute(self, nodeId: int,
18051808
forceLegacyListEncoding=False)
18061809

18071810
async def _WriteAttribute(self, nodeId: int,
1808-
attributes: typing.List[typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor]],
1811+
attributes: typing.List[typing.Union[
1812+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor],
1813+
typing.Tuple[int, ClusterObjects.ClusterAttributeDescriptor, int]
1814+
]],
18091815
timedRequestTimeoutMs: typing.Optional[int] = None,
18101816
interactionTimeoutMs: typing.Optional[int] = None, busyWaitMs: typing.Optional[int] = None,
18111817
payloadCapability: int = TransportPayloadCapability.MRP_PAYLOAD, forceLegacyListEncoding: bool = False):

0 commit comments

Comments
 (0)