-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels