ips-protodesc-code icon indicating copy to clipboard operation
ips-protodesc-code copied to clipboard

Fix `size` typing in protocol.py

Open lumisota opened this issue 4 years ago • 0 comments

The type of size of RepresentableTypes in protocol.py is currently Optional[int]. This should be Optional[Expression]. This change is not trivial: Array types can set their size by multiplying their length, and this requires constructing an Expression. At present, this would require access to the parent Protocol type.

lumisota avatar Jun 15 '20 18:06 lumisota