Stop allowing positional arguments besides place_id for API.geo_id
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:34:32 +0000 (22:34 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:34:32 +0000 (22:34 -0600)
tweepy/api.py

index bb72dce97ac5fa6d77c9f833b8930791539f2f36..043da6d9eb82dca18e260c5f464eaeb50feffb3d 100644 (file)
@@ -1180,10 +1180,10 @@ class API:
         )
 
     @payload('place')
-    def geo_id(self, place_id, *args, **kwargs):
+    def geo_id(self, place_id, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/geo/place-information/api-reference/get-geo-id-place_id
         """
-        return self.request('GET', f'geo/id/{place_id}', *args, **kwargs)
+        return self.request('GET', f'geo/id/{place_id}', **kwargs)
 
     @payload('place', list=True)
     def geo_search(self, *args, **kwargs):