Support include_ext_edit_control parameter for API methods
authorHarmon <Harmon758@gmail.com>
Tue, 4 Oct 2022 03:48:08 +0000 (22:48 -0500)
committerHarmon <Harmon758@gmail.com>
Tue, 4 Oct 2022 03:52:50 +0000 (22:52 -0500)
tweepy/api.py

index f60577c114bae5977e2d9f90d14c8098191e6c46..12dc6838b1b9857da9fb37b762e369750dd35a41 100644 (file)
@@ -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)