diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-07-19 13:03:51 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-07-19 14:26:05 -0400 |
commit | 3e3ea70df4a753e9f774f222d3722d2c9bfdbca7 (patch) | |
tree | 95bec62de0720a5891d576e8771cba84f8fa9f36 /lib/sqlalchemy/sql/cache_key.py | |
parent | eefc8c985400cd458e561d61299a2b81bdff1189 (diff) | |
download | sqlalchemy-3e3ea70df4a753e9f774f222d3722d2c9bfdbca7.tar.gz |
fixes for mypy 0.971
things that were passing with 0.961 need adjustment.
it seems mypy has become very pedantic about the difference
between importing from a module vs. accessing members of that
module as instance variables, so adjust the preloaded
typing block to be explicitly instance variables, since that's
how the accessor works in any case.
Change-Id: I746a3c9102530b7cf9b123aec7be6376657c1169
Diffstat (limited to 'lib/sqlalchemy/sql/cache_key.py')
-rw-r--r-- | lib/sqlalchemy/sql/cache_key.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/cache_key.py b/lib/sqlalchemy/sql/cache_key.py index 5922c2db0..88148285c 100644 --- a/lib/sqlalchemy/sql/cache_key.py +++ b/lib/sqlalchemy/sql/cache_key.py @@ -272,7 +272,7 @@ class HasCacheKey: elif meth is ANON_NAME: elements = util.preloaded.sql_elements if isinstance(obj, elements._anonymous_label): - obj = obj.apply_map(anon_map) + obj = obj.apply_map(anon_map) # type: ignore result += (attrname, obj) elif meth is CALL_GEN_CACHE_KEY: result += ( |