Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Commit bf06add

Browse files
committed
refactor: address comments
1 parent 1482435 commit bf06add

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎google/cloud/spanner.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017, Google LLC All rights reserved.
1+
# Copyright 2016, Google LLC All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

‎google/cloud/spanner_v1/streamed.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def _consume_next(self):
119119
if source is not None and source._transaction_id is None:
120120
source._transaction_id = metadata.transaction.id
121121

122-
if type(response).pb(response).HasField("stats"): # last response
122+
if "stats" in response: # last response
123123
self._stats = response.stats
124124

125125
values = list(response.values)

0 commit comments

Comments
 (0)