From 0629d5ff17d5491d70da67b674f2e933c50f1262 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 23 Jan 2021 13:58:56 -0600 Subject: [PATCH] Change Stream.filter to use keyword-only arguments --- tweepy/streaming.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 937e7e2..b35aa39 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -231,8 +231,9 @@ class Stream: args=args, kwargs=kwargs, daemon=self.daemon) self.thread.start() - def filter(self, follow=None, track=None, threaded=False, locations=None, - stall_warnings=False, languages=None, filter_level=None): + def filter(self, *, follow=None, track=None, threaded=False, + locations=None, stall_warnings=False, languages=None, + filter_level=None): body = {} if self.running: raise TweepError('Stream object already connected!') -- 2.25.1