Stop allowing positional arguments for API.reverse_geocode
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:32:58 +0000 (22:32 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:32:58 +0000 (22:32 -0600)
Stop allowing positional arguments besides lat and long for API.reverse_geocode

tweepy/api.py

index fa72db0a7b5ae4a225cc2135a85f4d00e89a9676..bb72dce97ac5fa6d77c9f833b8930791539f2f36 100644 (file)
@@ -1170,12 +1170,11 @@ class API:
         )
 
     @payload('place', list=True)
-    def reverse_geocode(self, lat, long, *args, **kwargs):
+    def reverse_geocode(self, lat, long, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode
         """
         return self.request(
-            'GET', 'geo/reverse_geocode', lat, long, *args,
-            endpoint_parameters=(
+            'GET', 'geo/reverse_geocode', lat, long, endpoint_parameters=(
                 'lat', 'long', 'accuracy', 'granularity', 'max_results'
             ), **kwargs
         )