Commit 2c611f2c authored by Raphaël Hertzog's avatar Raphaël Hertzog

Fix docstrings that embed their signature

parent 6e32bf78
Pipeline #27852 passed with stage
in 33 minutes and 19 seconds
......@@ -251,7 +251,7 @@ def verify_signature(content):
def now(tz=datetime.timezone.utc):
"""
Returns datetime.datetime.now() in the requested timezone (UTC by default)
Returns the current timestamp in the requested timezone (UTC by default)
and can be easily mocked out for tests.
"""
return datetime.datetime.now(tz)
......
......@@ -188,7 +188,7 @@ class UserEmailManager(models.Manager):
def get_or_create(self, *args, **kwargs):
"""
Replaces the default get_or_create() with one that matches
Replaces the default method with one that matches
the email case-insensitively.
"""
defaults = kwargs.get('defaults', {})
......
......@@ -104,9 +104,7 @@ ignore =
# First line should end with a period
D400,
# First line should be in imperative mood
D401,
# First line should not be the function's "signature"
D402
D401
enable-extensions = G
application-import-names = distro_tracker,django_email_accounts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment