在这种情况下,应该使用什么样的正确缩进:
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有以下不满:
../models.py:68:13: E126 continuation line over-indented for hanging indent
../models.py:70:9: E121 continuation line under-indented for hanging indent
pep8
程序(顺便说一下,它并未得到官方Python开发人员的认可)比实际的PEP 8指南更为严格。 - John Y