Change AsyncStream initialization parameters to be keyword-only
authorHarmon <Harmon758@gmail.com>
Thu, 29 Apr 2021 10:40:05 +0000 (05:40 -0500)
committerHarmon <Harmon758@gmail.com>
Thu, 29 Apr 2021 10:40:36 +0000 (05:40 -0500)
Change max_retries and proxy AsyncStream initialization parameters to be keyword-only

tweepy/asynchronous/streaming.py

index 7a963df201b2db02e09599600289e3027fa13416..8d9ae595df1e226fca7918f29f0cf8ae3e30a328 100644 (file)
@@ -48,7 +48,7 @@ class AsyncStream:
     """
 
     def __init__(self, consumer_key, consumer_secret, access_token,
-                 access_token_secret, max_retries=inf, proxy=None):
+                 access_token_secret, *, max_retries=inf, proxy=None):
         self.consumer_key = consumer_key
         self.consumer_secret = consumer_secret
         self.access_token = access_token