Skip to content

Files

Latest commit

 

History

History
29 lines (19 loc) · 489 Bytes

File metadata and controls

29 lines (19 loc) · 489 Bytes

Pattern: Missing use of indented block

Issue: -

Description

This issue occurs when code is not indented but should be.

Example of incorrect code:

def print_list(my_list):
"""This should be indented"""
    print('Nope')

Example of correct code:

Indent the docstring by four spaces.

def print_list(my_list):
    """This should be indented"""
    print('Nope')

Further Reading