Skip to content

Commit 7946490

Browse files
committed
Stop allowing positional arguments for API.trends_closest
Stop allowing positional arguments besides lat and long for API.trends_closest
1 parent 75b9616 commit 7946490

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tweepy/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,11 +1125,11 @@ def trends_place(self, id, **kwargs):
11251125
)
11261126

11271127
@payload('json')
1128-
def trends_closest(self, lat, long, *args, **kwargs):
1128+
def trends_closest(self, lat, long, **kwargs):
11291129
""" :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest
11301130
"""
11311131
return self.request(
1132-
'GET', 'trends/closest', lat, long, *args, endpoint_parameters=(
1132+
'GET', 'trends/closest', lat, long, endpoint_parameters=(
11331133
'lat', 'long'
11341134
), **kwargs
11351135
)

0 commit comments

Comments
 (0)