From: Harmon Date: Fri, 19 Feb 2021 15:51:02 +0000 (-0600) Subject: Stop allowing positional arguments for API.geo_search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0a6bec9906b41983067315954ac533556ae85176;p=tweepy.git Stop allowing positional arguments for API.geo_search --- diff --git a/tweepy/api.py b/tweepy/api.py index bbbfae3..2e59154 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 )