Replies: 1 comment
-
nvm, discussion can be closed, the solution was given in issue #22. import multimethod
class A():
@multimethod.multimethod
def echo(self, i):
print("A: fallback")
class B(A):
@A.echo.register
def echo(self, i: int):
print("B1: int") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I was wondering if multimethod supports usage with inheritance as exemplified below.
If not supported, what are your thoughts on such functionality? And could such functionality be added?
Beta Was this translation helpful? Give feedback.
All reactions