From 94421b38918a873de8aab4e5302f74fa2ddf46de Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 12 Aug 2023 14:16:41 +0200 Subject: [PATCH] fixup! correct type --- pynitrokey/nk3/secrets_app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pynitrokey/nk3/secrets_app.py b/pynitrokey/nk3/secrets_app.py index d80eedec..322c229a 100644 --- a/pynitrokey/nk3/secrets_app.py +++ b/pynitrokey/nk3/secrets_app.py @@ -604,15 +604,14 @@ def register( @classmethod def encode_properties_to_send( cls, touch_button_required: bool, pin_based_encryption: bool - ) -> bytes: - r = RawBytes( + ) -> RawBytes: + return RawBytes( [ Tag.Properties.value, (0x02 if touch_button_required else 0x00) | (0x04 if pin_based_encryption else 0x00), ] ) - return r def calculate(self, cred_id: bytes, challenge: Optional[int] = None) -> bytes: """