Skip to content

Add # docstub: ignore comment directive #48

@lagru

Description

@lagru

Similar to # docstub: on ... #docstub: off it would be nice to have a directive to disable transformation for one line. E.g., this would be useful to preserve a decorator such as click.command that's typing relevant but from a third-party package.

Though, for now something like

# docstub: off
@click.command()
# docstub: on
@click.option(...)
def main(*args, **kwargs):
    ...

works too. So not of utmost priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions