What is the correct indention for this scenario:
class StorageType(models.Model):
""" Defining a general typ of storage """
name = models.CharField(
max_length=50,
help_text=_("The name for a storage type. Should be unique")
)
pep8 complains with
../models.py:68:13: E126 continuation line over-indented for hanging indent
../models.py:70:9: E121 continuation line under-indented for hanging indent
I don't know about the "correct one", but here's my favorite which passes pep8
check:
name = models.CharField(
max_length=50,
help_text=_("The name for a storage type. Should be unique")
)
This is one correct indentation:
class StorageType(models.Model):
""" Defining a general typ of storage """
name = models.CharField(
max_length=50,
help_text=_("The name for a storage type. Should be unique")
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With