From 3539fa2129f22af80e68adfb9d216c2176dc0181 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 11:08:02 -0600 Subject: [PATCH] Stop allowing positional arguments for API.update_profile_image Stop allowing positional arguments besides filename for API.update_profile_image --- tweepy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/api.py b/tweepy/api.py index 098b371..c375f61 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -823,7 +823,7 @@ class API: ) @payload('user') - def update_profile_image(self, filename, *args, file=None, **kwargs): + def update_profile_image(self, filename, *, file=None, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image """ if file is not None: -- 2.25.1