Skip to content

Identifier with trailing underscore #26

@opk12

Description

@opk12

A variable name with a trailing underscore gives Unknown target name:

$  cat test.py 
def f(id_: str):
    """Function.

    :param id_: A string."""
    print()
$  flake8 test.py 
test.py:4:1: RST306 Unknown target name: "id".

Could this be related to sphinx issue 1462?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions