improve some more type annotations using TypeVar
This commit is contained in:
parent
eb11f31960
commit
2bc03cbbf4
4 changed files with 60 additions and 49 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue