Pacify typechecker.

This commit is contained in:
Itamar Turner-Trauring 2021-02-15 11:40:47 -05:00
parent 9bb64abded
commit 520e8fe55e
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ def b2a(os): # type: (bytes) -> bytes
def b2a_or_none(os): # type: (Optional[bytes]) -> Optional[bytes]
if os is not None:
return b2a(os)
return None
# b2a() uses the minimal number of quintets sufficient to encode the binary
# input. It just so happens that the relation is like this (everything is