Skip to content

Commit

Permalink
Add type hints for Client.get_home_timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed May 21, 2022
1 parent 5c11e9d commit 71f4e4b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tweepy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,9 @@ def get_users_mentions(
), data_type=Tweet, user_auth=user_auth
)

def get_home_timeline(self, *, user_auth=True, **params):
def get_home_timeline(
self, *, user_auth: bool = True, **params: _ParamsMappingValueType
) -> JSON | requests.Response | Response:
"""get_home_timeline( \
*, end_time=None, exclude=None, expansions=None, \
max_results=None, media_fields=None, pagination_token=None, \
Expand Down Expand Up @@ -1432,13 +1434,9 @@ def get_home_timeline(self, *, user_auth=True, **params):
IDs is `here`_.
user_fields : list[str] | str | None
:ref:`user_fields_parameter`
user_auth : bool
user_auth
Whether or not to use OAuth 1.0a User Context to authenticate
Returns
-------
dict | requests.Response | Response
References
----------
https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/api-reference/get-users-id-reverse-chronological
Expand Down

0 comments on commit 71f4e4b

Please sign in to comment.