From: Harmon Date: Sat, 23 Jan 2021 19:58:56 +0000 (-0600) Subject: Change Stream.filter to use keyword-only arguments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0629d5ff17d5491d70da67b674f2e933c50f1262;p=tweepy.git Change Stream.filter to use keyword-only arguments --- 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!')