mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
add assert_never
This commit is contained in:
@@ -72,6 +72,8 @@ def number_to_pb2(v: Union[int, float]) -> capa_pb2.Number:
|
||||
return capa_pb2.Number(i=i.i)
|
||||
else:
|
||||
return capa_pb2.Number(u=i.u)
|
||||
else:
|
||||
assert_never(v)
|
||||
|
||||
|
||||
def addr_to_pb2(addr: frz.Address) -> capa_pb2.Address:
|
||||
|
||||
Reference in New Issue
Block a user