Skip to content

Commit

Permalink
Update google/cloud/spanner_v1/batch.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sri Harsha CH <[email protected]>
  • Loading branch information
Sunny Singh and harshachinta authored Nov 29, 2023
1 parent 25e6999 commit 7d57ac2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions google/cloud/spanner_v1/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ class MutationGroup(_BatchBase):
:param mutations: The list into which mutations are to be accumulated.
"""

def __init__(self, session, mutations):
super(MutationGroup, self).__init__(session, mutations)
def __init__(self, session, mutations=[]):
super(MutationGroup, self).__init__(session)
self._mutations = mutations


class MutationGroups(_SessionWrapper):
Expand Down

0 comments on commit 7d57ac2

Please sign in to comment.