From: Harmon Date: Fri, 25 Feb 2022 23:53:56 +0000 (-0600) Subject: Use generic standard type collection type in documentation X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f8492ecbcac56359ecd3153abed6d993ee9aa244;p=tweepy.git Use generic standard type collection type in documentation --- diff --git a/tweepy/client.py b/tweepy/client.py index 42ab503..6a51506 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -204,7 +204,7 @@ class Client(BaseClient): Twitter API Access Token access_token_secret : str | None Twitter API Access Token Secret - return_type : Type[dict | requests.Response | Response] + return_type : type[dict | requests.Response | Response] Type to return from requests to the API wait_on_rate_limit : bool Whether to wait when rate limit is reached diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 4d527de..b4563cf 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -518,7 +518,7 @@ class StreamingClient(BaseClient, BaseStream): ---------- bearer_token : str Twitter API Bearer Token - return_type : Type[dict | requests.Response | Response] + return_type : type[dict | requests.Response | Response] Type to return from requests to the API wait_on_rate_limit : bool Whether to wait when rate limit is reached