From 8ab3a3ada4b7cdd4eaf7b5b71751808162e37430 Mon Sep 17 00:00:00 2001 From: "Jason M. Gates" Date: Wed, 24 Apr 2024 15:13:54 -0600 Subject: [PATCH] style: Remove unnecessary parentheses https://docs.astral.sh/ruff/rules/unnecessary-paren-on-raise-exception/ --- shell_logger/stats_collector.py | 4 ++-- shell_logger/trace.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell_logger/stats_collector.py b/shell_logger/stats_collector.py index 2bf675b..1284f27 100644 --- a/shell_logger/stats_collector.py +++ b/shell_logger/stats_collector.py @@ -119,7 +119,7 @@ def collect(self): Raises: AbstractMethod: This must be overridden by subclasses. """ - raise AbstractMethod() + raise AbstractMethod @abstractmethod def unproxied_stats(self): @@ -132,7 +132,7 @@ def unproxied_stats(self): Raises: AbstractMethod: This must be overridden by subclasses. """ - raise AbstractMethod() + raise AbstractMethod def finish(self): """ diff --git a/shell_logger/trace.py b/shell_logger/trace.py index c79142c..9a7d2ce 100644 --- a/shell_logger/trace.py +++ b/shell_logger/trace.py @@ -88,7 +88,7 @@ def trace_args(self) -> str: Raises: AbstractMethod: This needs to be overridden by subclasses. """ - raise AbstractMethod() + raise AbstractMethod def command(self, command: str): """