Skip to content

Commit

Permalink
Stop allowing positional arguments besides id for API.trends_place
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 19, 2021
1 parent c50f540 commit 548810c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,11 +1115,11 @@ def trends_available(self, **kwargs):
return self.request('GET', 'trends/available', **kwargs)

@payload('json')
def trends_place(self, id, *args, **kwargs):
def trends_place(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place
"""
return self.request(
'GET', 'trends/place', id, *args, endpoint_parameters=(
'GET', 'trends/place', id, endpoint_parameters=(
'id', 'exclude'
), **kwargs
)
Expand Down

0 comments on commit 548810c

Please sign in to comment.