Skip to content

W0511: Doesn't detect TODO in docstrings #9255

@mueller-ma

Description

@mueller-ma

Bug description

# TODO: Write good doc strings.

def foobar():
    """
    TODO: Implement
    """

Configuration

No response

Command used

pylint todo.py

Pylint output

************* Module todo
todo.py:1:1: W0511: TODO: Write good doc strings. (fixme)
todo.py:1:0: C0114: Missing module docstring (missing-module-docstring)

------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)

Expected behavior

I expect the TODO: Implement to lead to an error reported by pylint.

Pylint version

pylint 3.0.2
astroid 3.0.1
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]

OS / Environment

Debian 12 in WSL 2

Additional dependencies

No response

Metadata

Metadata

Labels

Enhancement ✨Improvement to a componentGood first issueFriendly and approachable by new contributorsHelp wanted 🙏Outside help would be appreciated, good for new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions