From dd8ed4aec16c807e715fe6e05d1d89e30d32c4cd Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Sun, 24 May 2026 18:18:19 +0000 Subject: [PATCH] Fix F402: rename loop var 'table' to 'tbl' to avoid shadowing SQLAlchemy table import The for loop variable 'table' shadows the imported SQLAlchemy table() from line 8. Ruff rule F402 fires when a loop variable shadows an import. Rename to 'tbl'. Co-Authored-By: Paperclip --- tests/test_encrypted_json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_encrypted_json.py b/tests/test_encrypted_json.py index 07cf44c..2e4a2e2 100644 --- a/tests/test_encrypted_json.py +++ b/tests/test_encrypted_json.py @@ -18,8 +18,8 @@ from cartsnitch_api.models.user import User, UserStoreAccount def engine(): eng = create_engine("sqlite:///:memory:") - for table in Base.metadata.tables.values(): - for col in table.columns.values(): + for tbl in Base.metadata.tables.values(): + for col in tbl.columns.values(): sd = col.server_default if sd is not None: expr_str = str(sd.expression).lower()