We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug If a child class inherits parent class, the decorators of the parent class won't be inherited
To Reproduce For example
import uplink @uplink.response_handler def rsp_handler(response): print(f'request: {response.request.url}') return response @rsp_handler class GitHub(uplink.Consumer): @uplink.get("/users/{user}") def get_user(self, user): pass class InheritedGitHub(GitHub): @uplink.get("/users/{user}") def get_user(self, user): pass base_url = "https://api.github.com/" GitHub(base_url).get_user("user_1") InheritedGitHub(base_url).get_user("user_2")
will print only: request: https://api.github.com/users/user_1
request: https://api.github.com/users/user_1
Expected behavior I've expected both client classes to inherit the decorator and see this:
request: https://api.github.com/users/user_1 request: https://api.github.com/users/user_2
Additional context uplink==0.9.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
If a child class inherits parent class, the decorators of the parent class won't be inherited
To Reproduce
For example
will print only:
request: https://api.github.com/users/user_1
Expected behavior
I've expected both client classes to inherit the decorator and see this:
Additional context
uplink==0.9.3
The text was updated successfully, but these errors were encountered: