Skip to content

Commit

Permalink
make type checking more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmuth committed Oct 17, 2024
1 parent 489ca1f commit f2388d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FrontEnd/typify.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,7 @@ def visitor(node, _):
node} in {node.x_srcloc}"
assert ct.name in tc.corpus, f"bad type annotation for {
node}: {node.x_type}"
assert ct.replacement_type is None
verifier.Verify(node, tc)

elif isinstance(node, UNTYPED_NODES_TO_BE_TYPECHECKED):
Expand Down

0 comments on commit f2388d5

Please sign in to comment.