From: Harmon Date: Fri, 19 Feb 2021 04:32:58 +0000 (-0600) Subject: Stop allowing positional arguments for API.reverse_geocode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b209c484f1dd4458d455b4faa41971c6429dae3b;p=tweepy.git Stop allowing positional arguments for API.reverse_geocode Stop allowing positional arguments besides lat and long for API.reverse_geocode --- diff --git a/tweepy/api.py b/tweepy/api.py index fa72db0..bb72dce 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 )