According to the spec:
A line that begins with # is treated as a comment and ignored.
Whitespace followed by a # causes the # and the remainder of the line
to be treated as a comment.
Before this patch the following had a mistakenly highlighted
comment (pip doesn't accept this):
numpy==2.1.3#not a comment
(There's no whitespace before the #).