From fa372ec44ba7710c4b81726c7a7ae7a01fe32431 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Thu, 16 Feb 2023 17:43:33 +0100 Subject: [PATCH] signingscript: make black and flake8 happy 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 (https://github.com/PyCQA/pydocstyle/pull/426), and the former now complains about the missing blank line even with the comment (https://github.com/psf/black/pull/3302). --- signingscript/src/signingscript/sign.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/signingscript/src/signingscript/sign.py b/signingscript/src/signingscript/sign.py index 9aeeaebc8..5a5ea7e67 100644 --- a/signingscript/src/signingscript/sign.py +++ b/signingscript/src/signingscript/sign.py @@ -87,6 +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): @@ -103,6 +104,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):