Method doesn't use the class instance and could be converted into a static method
114 return response
115
116 # TODO Rename this here and in `post`
117 def refresh_op(self, response, cookie_name):118 cookie_secure = getattr(settings, "JWT_AUTH_SECURE", False)
119 cookie_httponly = getattr(settings, "JWT_AUTH_HTTPONLY", True)
120 cookie_samesite = getattr(settings, "JWT_AUTH_SAMESITE", "Lax")
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.