summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/annotation.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-02-22 13:11:20 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-02-22 13:11:20 -0500
commit3cb614009ee87a115ec7230949c031402efb17c1 (patch)
treef892ada52a873dd6a7214edea517ecaef10f3fa9 /lib/sqlalchemy/sql/annotation.py
parentca16c53651f819e9587ed29d7d1d7d937e7f25ce (diff)
downloadsqlalchemy-3cb614009ee87a115ec7230949c031402efb17c1.tar.gz
Ensure descendants of mixins don't become cacheable
HasPrefix / HasSuffixes / SupportsCloneAnnotations exported a _traverse_internals attribute that does not represent a complete traversal, meaning non-traversible subclasses would seem traversible. rename these attributes so that this does not occur. DML is currently not traversible (will be soon). Change-Id: I2605e61c8c3d49965335e66e09f4aeedc5e73bd3
Diffstat (limited to 'lib/sqlalchemy/sql/annotation.py')
-rw-r--r--lib/sqlalchemy/sql/annotation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/annotation.py b/lib/sqlalchemy/sql/annotation.py
index 0f668ebe7..7984dc7ea 100644
--- a/lib/sqlalchemy/sql/annotation.py
+++ b/lib/sqlalchemy/sql/annotation.py
@@ -37,7 +37,7 @@ class SupportsAnnotations(object):
class SupportsCloneAnnotations(SupportsAnnotations):
_annotations = util.immutabledict()
- _traverse_internals = [
+ _clone_annotations_traverse_internals = [
("_annotations_cache_key", InternalTraversal.dp_plain_obj)
]