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

index 3cd9e4c10c72db3cbdda91897ba1a9557a90b395..937e7e2eec7aea1f45013b9d89c1552f43b380ee 100644 (file)
@@ -258,7 +258,7 @@ class Stream:
         else:
             self._connect(endpoint, body=body)
 
-    def sample(self, threaded=False, languages=None, stall_warnings=False):
+    def sample(self, *, languages=None, stall_warnings=False, threaded=False):
         if self.running:
             raise TweepError('Stream object already connected!')