Method doesn't use the class instance and could be converted into a static method
22 else:
23 return None
24
25 def get_chain_data(self, access_token):26 headers = {
27 "Content-Type": "application/json",
28 "Authorization": f"Bearer {access_token}",
Description
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.