Skip to content

Bug Report for python-docstrings #5206

@sushantsp

Description

@sushantsp

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.

While submitting a solution in case of doc-strings - String needs to start on the same line as triple quotes. When starting on new line (which looks more elegant) - comparison mismatches.

Acceptable Solution is following

"""A class to represent a pet.

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

Compared to (much elegnant)

"""
A class to represent a pet.

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

seems more of newline comparison issue.

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