From 190e0139e834e4271268652e058c280787ae69eb Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 30 May 2019 11:31:03 -0400 Subject: Enable F841 This is a very useful assertion which prevents unused variables from being set up allows code to be more readable and sometimes even more efficient. test suites seem to be where the most problems are and there do not seem to be documentation examples that are using this, or at least the linter is not taking effect within rst blocks. Change-Id: I2b3341d8dd14da34879d8425838e66a4b9f8e27d --- lib/sqlalchemy/sql/coercions.py | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/sqlalchemy/sql/coercions.py') diff --git a/lib/sqlalchemy/sql/coercions.py b/lib/sqlalchemy/sql/coercions.py index ccd506a73..39e6628e4 100644 --- a/lib/sqlalchemy/sql/coercions.py +++ b/lib/sqlalchemy/sql/coercions.py @@ -101,7 +101,6 @@ class RoleImpl(object): self._use_inspection = issubclass(role_class, roles.UsesInspection) def _resolve_for_clause_element(self, element, argname=None, **kw): - literal_coercion = self._literal_coercion original_element = element is_clause_element = False -- cgit v1.2.1