Skip to content

Comment checker will flag W9401 and W9402 on a string that contains a '#' #135

Closed
@jwtrhs

Description

@jwtrhs

Bit of an edge case, but if I declare a python string containing a '#' character it gets picked up and checked as a comment.

See the following diff for an example that triggers the problem (a '#' symbol in the anchor portion of a URL) and workaround for the problem (declare the string inside triple quotes ["""] on a new line).

twisted/twisted@b7447a1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions