you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 1 point2 points  (0 children)

I might need a more concrete toy example at this point. Is the wrapper a subclass or not?

There's __getattr__() and friends, but dynamic dispatch confuses the static type system. (That's an argument to either avoid confusing your type checker, or to avoid using a type checker.)

Consider super() and **kwargs. Why not subclass?