From c1787f0a3ca478d1610015ce5ffa8553873a8efc Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 26 Feb 2022 13:37:41 -0600 Subject: [PATCH] Fix return for Client.unfollow Properly return response from Client.unfollow_user rather than None --- tweepy/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( \ -- 2.25.1