From 0cd3aa72bca9b5fdd64adeaeef8fdfbee628d1b0 Mon Sep 17 00:00:00 2001 From: "J.Endurium" Date: Fri, 28 Oct 2022 00:18:55 -0500 Subject: [PATCH] Breakout Response creation into separate method --- tweepy/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tweepy/client.py b/tweepy/client.py index c7db560..2afda8e 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -137,6 +137,9 @@ class BaseClient: if self.return_type is dict: return response + return self._construct_response(response, data_type=data_type) + + def _construct_response(self, response, data_type=None): data = response.get("data") data = self._process_data(data, data_type=data_type) -- 2.25.1