summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-04-11 14:23:29 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-04-11 14:23:29 -0400
commit17413bbf10c3b993d343c28035713a23c745712c (patch)
tree61c126a4101874d671288396c2dbf9432e3e86fc /lib/sqlalchemy/orm/util.py
parent53c65ed93ade1fc99c75e1f0bf055cd129596c06 (diff)
downloadsqlalchemy-17413bbf10c3b993d343c28035713a23c745712c.tar.gz
Black updates
Updating for a few black adjustments Change-Id: I9c8abadd1ccd6173e6d68dd62f14cec208cc304a
Diffstat (limited to 'lib/sqlalchemy/orm/util.py')
-rw-r--r--lib/sqlalchemy/orm/util.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py
index 7b8edd349..36da781a4 100644
--- a/lib/sqlalchemy/orm/util.py
+++ b/lib/sqlalchemy/orm/util.py
@@ -1265,10 +1265,7 @@ def _entity_corresponds_to_use_path_impl(given, entity):
return (
entity.is_aliased_class
and not entity._use_mapper_path
- and (
- given is entity
- or given in entity._with_polymorphic_entities
- )
+ and (given is entity or given in entity._with_polymorphic_entities)
)
elif not entity.is_aliased_class:
return given.common_parent(entity.mapper)