Skip to content

Commit

Permalink
signingscript: make black and flake8 happy
Browse files Browse the repository at this point in the history
Once upon a time black and pydocstyle disagreed on blank lines before
nested functions, and a comment would appease them both.
Since then, the latter has been changed to not complain about a blank
line (PyCQA/pydocstyle#426), and the former now
complains about the missing blank line even with the comment
(psf/black#3302).
  • Loading branch information
jcristau committed Feb 17, 2023
1 parent 1d0e58e commit 04f30a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signingscript/src/signingscript/sign.py
Expand Up @@ -87,7 +87,7 @@ def get_rss():

def time_async_function(f):
"""Time an async function."""
# comment to keep black/flake8 happy together

@wraps(f)
async def wrapped(*args, **kwargs):
start = time.time()
Expand All @@ -103,7 +103,7 @@ async def wrapped(*args, **kwargs):

def time_function(f):
"""Time a sync function."""
# comment to keep black/flake8 happy together

@wraps(f)
def wrapped(*args, **kwargs):
start = time.time()
Expand Down

0 comments on commit 04f30a8

Please sign in to comment.