-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(http): use multiple inheritance for http wrappers #124
refactor(http): use multiple inheritance for http wrappers #124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that ive not looked at the wrappers as i assume all of them is copy pasted
002c23c
to
0c30b2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can ShardManager & Shard be changed to require GatewayHTTPWrappers instead of HTTPClient?
This also removes the __all__s related to this
54b0f73
to
e4900fa
Compare
This moves all HTTP wrappers to separate files so editors can handle them.
Each wrapper container subclasses
BaseHTTPClient
so the types ofself._request
and other attributes are known.BaseHTTPClient
is subclassed last fromHTTPClient
for a consistent mro order that python likes - overwrites the wrapper containers which are also subclasses.