pydocstringformatter icon indicating copy to clipboard operation
pydocstringformatter copied to clipboard

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

Open Pierre-Sassoulas opened this issue 2 years ago • 0 comments

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 https://github.com/PyCQA/astroid/pull/1792#issuecomment-1250256197

Pierre-Sassoulas avatar Sep 18 '22 13:09 Pierre-Sassoulas