improve some more type annotations using TypeVar

This commit is contained in:
Jan Petykiewicz 2020-11-01 19:33:43 -08:00
commit 2bc03cbbf4
4 changed files with 60 additions and 49 deletions

View file

@ -576,6 +576,7 @@ def load_library(stream: BinaryIO,
if is_secondary is None:
def is_secondary(k: str):
return False
assert(is_secondary is not None)
stream.seek(0)
library_info = _read_header(stream)