Change Client initialization parameter to be keyword-only
authorHarmon <Harmon758@gmail.com>
Fri, 7 May 2021 21:54:35 +0000 (16:54 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 7 May 2021 21:54:35 +0000 (16:54 -0500)
Change wait_on_rate_limit Client initialization parameter to be keyword-only

tweepy/client.py

index 6c338f24074b6995ba91a5d00c9ccf1476ac8336..9b71255853790d31ec4f7873ad4c371e78d0223e 100644 (file)
@@ -55,7 +55,7 @@ class Client:
 
     def __init__(self, bearer_token=None, consumer_key=None,
                  consumer_secret=None, access_token=None,
-                 access_token_secret=None, wait_on_rate_limit=False):
+                 access_token_secret=None, *, wait_on_rate_limit=False):
         self.bearer_token = bearer_token
         self.consumer_key = consumer_key
         self.consumer_secret = consumer_secret