Skip to content

Commit

Permalink
Stop allowing positional arguments for API.get_user
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 10, 2021
1 parent 485691d commit 6b761ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -443,11 +443,11 @@ def retweeters(self, id, **kwargs):
)

@payload('user')
def get_user(self, *args, **kwargs):
def get_user(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show
"""
return self.request(
'GET', 'users/show', *args, endpoint_parameters=(
'GET', 'users/show', endpoint_parameters=(
'user_id', 'screen_name', 'include_entities'
), **kwargs
)
Expand Down

0 comments on commit 6b761ce

Please sign in to comment.