Skip to content
Commit a6ed7b26 authored by Martí Bolívar's avatar Martí Bolívar Committed by Kumar Gala
Browse files

dtlib: type annotate _err()



Marking this NoReturn helps the type checker figure out that functions
which call it are only returning valid values or failing to
return. (It unfortunately doesn't always work as mypy's control flow
analysis seems to treat a direct 'raise DTError(...)' differently than
calling _err() in some situations, but it helps.)

Signed-off-by: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent 587b3248
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment