From f9851f115b501add28b5b849821dd0525d82e960 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 8 Nov 2021 13:22:07 -0500 Subject: add pep 484 and 561 compliance, fixes #2747 --- python/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index e1c7474c..5eba9b8d 100644 --- a/python/types.py +++ b/python/types.py @@ -685,7 +685,7 @@ class TypeBuilder: return BoolWithConfidence(result.value, confidence = result.confidence) @const.setter - def const(self, value:BoolWithConfidenceType) -> None: # type: ignore We explicitly allow 'set' type to be different than 'get' type + def const(self, value:BoolWithConfidenceType) -> None: # type: ignore # We explicitly allow 'set' type to be different than 'get' type core.BNTypeBuilderSetConst(self._handle, BoolWithConfidence.get_core_struct(value)) @property @@ -695,7 +695,7 @@ class TypeBuilder: return BoolWithConfidence(result.value, confidence = result.confidence) @volatile.setter - def volatile(self, value:BoolWithConfidenceType) -> None: # type: ignore We explicitly allow 'set' type to be different than 'get' type + def volatile(self, value:BoolWithConfidenceType) -> None: # type: ignore # We explicitly allow 'set' type to be different than 'get' type core.BNTypeBuilderSetVolatile(self._handle, BoolWithConfidence.get_core_struct(value)) @property -- cgit v1.3.1