From 88c3fa1624af2a9eaaf0b85870ae01115ce0f952 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 14 Jan 2021 09:36:35 -0600 Subject: [PATCH] Handle arguments and keyword arguments for API.update_profile_banner --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 5abeb1d..e42ce84 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -815,7 +815,7 @@ class API: require_auth=True )(*args, files=files, **kwargs) - def update_profile_banner(self, filename, file=None, **kwargs): + def update_profile_banner(self, filename, file=None, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_banner :allowed_param: 'width', 'height', 'offset_left', 'offset_right' """ @@ -829,7 +829,7 @@ class API: method='POST', allowed_param=['width', 'height', 'offset_left', 'offset_right'], require_auth=True - )(files=files) + )(*args, files=files, **kwargs) @property def update_profile(self): -- 2.25.1