Subclass methods
#112
-
Good day! Thanks for your work! Should I decorate the subclass' method? import multimethod
class A:
@multimethod.multimethod
def meth(self, arg: int):
pass
@multimethod.multimethod
def meth(self, arg: str):
pass
class B(A):
... Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
coady
Feb 18, 2024
Replies: 1 comment 4 replies
-
class B(A):
@A.meth.register
def _(self, arg: float): ... You may also be interested in discussion #106, which is a similar issue. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
coady
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may also be interested in discussion #106, which is a similar issue.