Fix type errors in DLL library
By choosing different but equivalent conditions, mypy
is able to verify that accesses to properties of nodes are valid.
Alternatively, assertions could be used. For example: assert self.tail is not None
.
By choosing different but equivalent conditions, mypy
is able to verify that accesses to properties of nodes are valid.
Alternatively, assertions could be used. For example: assert self.tail is not None
.