Change AsyncStream.sample parameters to be keyword-only
authorHarmon <Harmon758@gmail.com>
Thu, 29 Apr 2021 10:42:13 +0000 (05:42 -0500)
committerHarmon <Harmon758@gmail.com>
Thu, 29 Apr 2021 10:42:13 +0000 (05:42 -0500)
tweepy/asynchronous/streaming.py

index b4de4b40cd3aa4a11571d34a39076dab22aa8ada..0aee94ec6670c566a5bd40dda57060a49855eb0c 100644 (file)
@@ -234,7 +234,7 @@ class AsyncStream:
         )
         return self.task
 
-    async def sample(self, languages=None, stall_warnings=False):
+    async def sample(self, *, languages=None, stall_warnings=False):
         """|coroutine|
 
         Sample realtime Tweets