How do I type hint for class wrapper or class with method assigned elsewhere than definition in Python3?
In some cases, it is required to inject the same method to multiple classes. To avoid repeated code, I can use a class decorator or class wrapper to assign new attributes and methods to specific class. (Since type hint for wrapper and decorator are the same, I will take decorator as example)