From 269a8d395d6cd3e0e586a7171f4a4003db3e6782 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 26 Jan 2025 09:32:11 +0200 Subject: [PATCH] fix: remove useless else (RUF047) --- arraycontext/container/traversal.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/arraycontext/container/traversal.py b/arraycontext/container/traversal.py index 8abd73d9..301bab34 100644 --- a/arraycontext/container/traversal.py +++ b/arraycontext/container/traversal.py @@ -153,8 +153,6 @@ def rec(*args_: Any) -> Any: iterable_template = serialize_container(template_ary) except NotAnArrayContainerError: return f(*args_) - else: - pass assert all( type(args_[i]) is type(template_ary) for i in container_indices[1:]