Cast assertions and generator tests #12
Reference in New Issue
Block a user
Delete Branch "feat/cast-assertions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements cast-assertion generation. For the moment, only the base type is checked.
It also adds
RawStmtandRawExprto store raw Python ast nodes that are not supported by the checker.This PR also adds a preamble with some of the builtin Python functions
Finally, it adds a tester for the generator.
Here is a non-exhaustive list of things that still need to be implemented:
time: Second = 1.23)castwhich doesn't produce any runtime assertion, for example to avoid costly operations1aff8e574dto2a8b7d559c