From: Harmon Date: Sat, 26 Feb 2022 19:37:41 +0000 (-0600) Subject: Fix return for Client.unfollow X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c1787f0a3ca478d1610015ce5ffa8553873a8efc;p=tweepy.git Fix return for Client.unfollow Properly return response from Client.unfollow_user rather than None --- diff --git a/tweepy/client.py b/tweepy/client.py index 0e96b4b..952c90c 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -1525,7 +1525,7 @@ class Client(BaseClient): "Client.unfollow is deprecated; use Client.unfollow_user instead.", DeprecationWarning ) - self.unfollow_user(target_user_id, user_auth=user_auth) + return self.unfollow_user(target_user_id, user_auth=user_auth) def get_users_followers(self, id, *, user_auth=False, **params): """get_users_followers( \