Change Stream.filter to use keyword-only arguments
authorHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 19:58:56 +0000 (13:58 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 19:58:56 +0000 (13:58 -0600)
tweepy/streaming.py

index 937e7e2eec7aea1f45013b9d89c1552f43b380ee..b35aa39c69edd042dea5d62b0f7098dbd0b48478 100644 (file)
@@ -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!')