Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Silence some pytype errors.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 623381193
  • Loading branch information
ise-crypto authored and copybara-github committed Apr 10, 2024
1 parent 93a1cca commit 59d6a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/tink/streaming_aead/_decrypting_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion python/tink/streaming_aead/_encrypting_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 59d6a2b

Please sign in to comment.