Skip to content

Commit 73f4796

Browse files
committed
Flush argument shadows the async keyword (snowplow#211)
1 parent 8dd90d2 commit 73f4796

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

snowplow_tracker/tracker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,16 +626,16 @@ def track_unstruct_event(self, event_json, context=None, tstamp=None):
626626
track_self_describing_event = track_unstruct_event
627627

628628
@contract
629-
def flush(self, async=False):
629+
def flush(self, is_async=False):
630630
"""
631631
Flush the emitter
632632
633-
:param async: Whether the flush is done asynchronously. Default is False
634-
:type async: bool
633+
:param is_async: Whether the flush is done asynchronously. Default is False
634+
:type is_async: bool
635635
:rtype: tracker
636636
"""
637637
for emitter in self.emitters:
638-
if async:
638+
if is_async:
639639
emitter.flush()
640640
else:
641641
emitter.sync_flush()

0 commit comments

Comments
 (0)