From e122f351a0b9a0e461a5c13ba0a94a47bd8a446e Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 3 Oct 2022 22:48:08 -0500 Subject: [PATCH] Support include_ext_edit_control parameter for API methods --- tweepy/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/api.py b/tweepy/api.py index f60577c..12dc683 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -163,7 +163,9 @@ class API: for k, arg in kwargs.items(): if arg is None: continue - if k not in endpoint_parameters and k != "tweet_mode": + if k not in endpoint_parameters + ( + "include_ext_edit_control", "tweet_mode" + ): log.warning(f'Unexpected parameter: {k}') params[k] = str(arg) log.debug("PARAMS: %r", params) -- 2.25.1