Skip to content

Bug Report for python-docstrings #4823

@Hassurunous

Description

@Hassurunous

Bug Report for https://neetcode.io/problems/python-docstrings

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

Expected output requires following as docstring for init:

"""A class to represent a pet.

Attributes:
    name (str): The pet's name
    animal_type (str): The pet's type

"""

This violates the precedent set in the explanations provided and the standards listed.

Solution: Expected output should have an additional empty line at the top.

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