Skip to content

Commit ed86709

Browse files
committed
Add comment
1 parent 9b03b43 commit ed86709

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,7 @@ def unary_not(self, value: Value, line: int, *, likely_bool: bool = False) -> Va
17041704
or is_dict_rprimitive(value_typ)
17051705
or isinstance(value_typ, RInstance)
17061706
):
1707+
# 'X | None' type: Check for None first and then specialize for X.
17071708
res = Register(bit_rprimitive)
17081709
cmp = self.add(ComparisonOp(value, self.none_object(), ComparisonOp.EQ, line))
17091710
none, not_none, out = BasicBlock(), BasicBlock(), BasicBlock()

0 commit comments

Comments
 (0)