Skip to content

Better summary detection (no dot added in the middle of a sentence) #175

Open
@Pierre-Sassoulas

Description

@Pierre-Sassoulas

In the following example pydocstringformatter add a .\n after "that".

def _looks_like_subscriptable(node: ClassDef) -> bool:
    """
    Returns True if the node corresponds to a ClassDef of the Collections.abc module that
    supports subscripting
    """
    pass

It would be nice to detect summary better, see pylint-dev/astroid#1792 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions