File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ def __init__(
334
334
else :
335
335
api_endpoint = _DATASTORE_BASE_URL
336
336
if client_options :
337
- if type (client_options ) == dict :
337
+ if isinstance (client_options , dict ) :
338
338
client_options = google .api_core .client_options .from_dict (
339
339
client_options
340
340
)
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ def test__item_to_aggregation_result():
420
420
result = _item_to_aggregation_result (None , map_composite_mock )
421
421
422
422
assert len (result ) == 1
423
- assert type (result [0 ]) == AggregationResult
423
+ assert isinstance (result [0 ], AggregationResult )
424
424
425
425
assert result [0 ].alias == "total"
426
426
assert result [0 ].value == map_composit
37E7
e_mock .__getitem__ ().integer_value
You can’t perform that action at this time.
0 commit comments