From 0a6bec9906b41983067315954ac533556ae85176 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 09:51:02 -0600 Subject: [PATCH] Stop allowing positional arguments for API.geo_search --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.25.1