-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
With a test.py containing:
from multimethod import multimethod
class Test:
@multimethod
def __init__(self) -> None:
pass
@__init__.register
def _(self, a: int) -> None:
pass> mypy test.py
test.py:6: error: Unsupported decorated constructor type
Found 1 error in 1 file (checked 1 source file)
Can I multimethod an __init__ (and pass mypy)? Sorry if I'm missing anything obvious, I'm just getting started with multiple dispatch.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels