Skip to content

Commit

Permalink
Stop allowing positional arguments for API.reverse_geocode
Browse files Browse the repository at this point in the history
Stop allowing positional arguments besides lat and long for API.reverse_geocode
  • Loading branch information
Harmon758 committed Feb 19, 2021
1 parent 87d8646 commit b209c48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tweepy/api.py
Expand Up @@ -1170,12 +1170,11 @@ def search_full_archive(self, label, query, **kwargs):
)

@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
)
Expand Down

0 comments on commit b209c48

Please sign in to comment.