Skip to content

Commit

Permalink
Stop allowing positional arguments for API.trends_closest
Browse files Browse the repository at this point in the history
Stop allowing positional arguments besides lat and long for API.trends_closest
  • Loading branch information
Harmon758 committed Feb 19, 2021
1 parent 75b9616 commit 7946490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -1125,11 +1125,11 @@ def trends_place(self, id, **kwargs):
)

@payload('json')
def trends_closest(self, lat, long, *args, **kwargs):
def trends_closest(self, lat, long, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest
"""
return self.request(
'GET', 'trends/closest', lat, long, *args, endpoint_parameters=(
'GET', 'trends/closest', lat, long, endpoint_parameters=(
'lat', 'long'
), **kwargs
)
Expand Down

0 comments on commit 7946490

Please sign in to comment.