Make Stream._start threaded parameter keyword-only argument
authorHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 13:55:13 +0000 (07:55 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 13:55:13 +0000 (07:55 -0600)
tweepy/streaming.py

index 1ede502f4839c70828ef2d76c61d65333a99453a..8b73e1474ba6dcfc580149902bf4e2234d765592 100644 (file)
@@ -228,7 +228,7 @@ class Stream:
         if resp.raw.closed:
             self.on_closed(resp)
 
-    def _start(self, threaded=False, *args, **kwargs):
+    def _start(self, *args, threaded=False, **kwargs):
         self.running = True
         if threaded:
             self._thread = Thread(target=self._run, args=args, kwargs=kwargs,