From 0aa7976daab50a7071563f033ee830987932dfec Mon Sep 17 00:00:00 2001 From: Shamil Date: Fri, 18 Apr 2025 13:50:08 +0300 Subject: [PATCH] fix: remove unused variable in topological sorting Eliminated an unused variable `node` during stack popping. Improves code clarity without modifying functionality. --- lib/sqlalchemy/util/topological.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlalchemy/util/topological.py b/lib/sqlalchemy/util/topological.py index 393c855abc..82f22a0195 100644 --- a/lib/sqlalchemy/util/topological.py +++ b/lib/sqlalchemy/util/topological.py @@ -112,7 +112,7 @@ def find_cycles( todo.remove(node) break else: - node = stack.pop() + stack.pop() return output -- 2.47.3