diff options
Diffstat (limited to 'lib/sqlalchemy/ext/horizontal_shard.py')
-rw-r--r-- | lib/sqlalchemy/ext/horizontal_shard.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/ext/horizontal_shard.py b/lib/sqlalchemy/ext/horizontal_shard.py index 5f13ad268..71159de15 100644 --- a/lib/sqlalchemy/ext/horizontal_shard.py +++ b/lib/sqlalchemy/ext/horizontal_shard.py @@ -59,7 +59,7 @@ class ShardedSession(Session): execute_chooser=None, shards=None, query_cls=ShardedQuery, - **kwargs + **kwargs, ): """Construct a ShardedSession. @@ -125,7 +125,7 @@ class ShardedSession(Session): primary_key_identity, identity_token=None, lazy_loaded_from=None, - **kw + **kw, ): """override the default :meth:`.Session._identity_lookup` method so that we search for a given non-token primary key identity across all @@ -141,7 +141,7 @@ class ShardedSession(Session): mapper, primary_key_identity, identity_token=identity_token, - **kw + **kw, ) else: q = self.query(mapper) @@ -153,7 +153,7 @@ class ShardedSession(Session): primary_key_identity, identity_token=shard_id, lazy_loaded_from=lazy_loaded_from, - **kw + **kw, ) if obj is not None: return obj |