From 2b5b7b22d4809cad4cb7443bf041117096c95a79 Mon Sep 17 00:00:00 2001 From: Andy Mikhaylenko Date: Wed, 4 Oct 2023 20:37:14 +0200 Subject: [PATCH] style: apply updated Black rules --- src/argh/dispatching.py | 1 - tests/test_dispatching.py | 1 - 2 files changed, 2 deletions(-) diff --git a/src/argh/dispatching.py b/src/argh/dispatching.py index 8985efb..c1d8bb1 100644 --- a/src/argh/dispatching.py +++ b/src/argh/dispatching.py @@ -325,7 +325,6 @@ def default_exception_processor(exc: Exception) -> str: for line in result: yield line except tuple(wrappable_exceptions) as exc: - processor = getattr( function, ATTR_WRAPPED_EXCEPTIONS_PROCESSOR, default_exception_processor ) diff --git a/tests/test_dispatching.py b/tests/test_dispatching.py index 0c03549..a629cc2 100644 --- a/tests/test_dispatching.py +++ b/tests/test_dispatching.py @@ -72,7 +72,6 @@ def func(): @patch("argh.dispatching.add_commands") @patch("argparse.ArgumentParser") def test_entrypoint(ap_cls_mock, add_commands_mock, dispatch_mock): - entrypoint = argh.EntryPoint("my cool app") # no commands