Use a dummy unit of -1 when reading (to satisfy type checker)

This commit is contained in:
Jan Petykiewicz 2020-04-18 15:41:44 -07:00
parent 8fb2f2b594
commit 3af40dd1bc

View File

@ -117,7 +117,7 @@ class OasisLayout:
"""
file_state = FileModals()
modals = Modals()
layout = OasisLayout(unit=None)
layout = OasisLayout(unit=-1) # dummy unit
read_magic_bytes(stream)