From 59d6a2b58dfcfc0cec0f0d41d69776d230b14190 Mon Sep 17 00:00:00 2001 From: Tink Team Date: Tue, 9 Apr 2024 22:44:27 -0700 Subject: [PATCH] Silence some pytype errors. PiperOrigin-RevId: 623381193 --- python/tink/streaming_aead/_decrypting_stream.py | 2 +- python/tink/streaming_aead/_encrypting_stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tink/streaming_aead/_decrypting_stream.py b/python/tink/streaming_aead/_decrypting_stream.py index 16c8157613..6b0bc505a0 100644 --- a/python/tink/streaming_aead/_decrypting_stream.py +++ b/python/tink/streaming_aead/_decrypting_stream.py @@ -131,5 +131,5 @@ def readable(self) -> bool: """Return True if the stream can be read from.""" return True - def write(self, b: bytes) -> int: + def write(self, b: bytes) -> int: # pytype: disable=signature-mismatch raise io.UnsupportedOperation() diff --git a/python/tink/streaming_aead/_encrypting_stream.py b/python/tink/streaming_aead/_encrypting_stream.py index 47d42e1cb1..014931aced 100644 --- a/python/tink/streaming_aead/_encrypting_stream.py +++ b/python/tink/streaming_aead/_encrypting_stream.py @@ -73,7 +73,7 @@ def _close_cc_encrypting_stream(self) -> None: def readinto(self, b: bytearray) -> Optional[int]: raise io.UnsupportedOperation() - def write(self, b: bytes) -> int: + def write(self, b: bytes) -> int: # pytype: disable=signature-mismatch """Write the given buffer to the IO stream. Args: