Stop allowing positional arguments for API.geo_search
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 15:51:02 +0000 (09:51 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 15:51:02 +0000 (09:51 -0600)
tweepy/api.py

index bbbfae3d7518820679fa352386be799247f332d4..2e59154fb53edba991f9988722304816214acdb5 100644 (file)
@@ -1186,11 +1186,11 @@ class API:
         return self.request('GET', f'geo/id/{place_id}', **kwargs)
 
     @payload('place', list=True)
-    def geo_search(self, *args, **kwargs):
+    def geo_search(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-search
         """
         return self.request(
-            'GET', 'geo/search', *args, endpoint_parameters=(
+            'GET', 'geo/search', endpoint_parameters=(
                 'lat', 'long', 'query', 'ip', 'granularity', 'max_results'
             ), **kwargs
         )