You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Client class has methods with many recurring arguments. The class can be refactored on the following lines for better usability.
Initiate a client with only those parameters that you need for multiple instance methods and that will be the same for every request. You don't want to instantiate a new client for every request you send.
Remove all parameters from the instance methods that you already pass when instantiating the client and refer to them as self.param. No param should be passed to both the class constructor and any of the instance methods.
Obviously define only those params in an instance method that you really need.
The text was updated successfully, but these errors were encountered:
The Client class has methods with many recurring arguments. The class can be refactored on the following lines for better usability.
self.param
. No param should be passed to both the class constructor and any of the instance methods.The text was updated successfully, but these errors were encountered: