Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison documentation on default values. #118

Closed
coady opened this issue Oct 8, 2023 · 2 comments
Closed

Comparison documentation on default values. #118

coady opened this issue Oct 8, 2023 · 2 comments

Comments

@coady
Copy link

coady commented Oct 8, 2023

Hi, I'm the maintainer of multimethod. As of v1.10, it supports default values as described in the comparison doc. Thanks.

from multimethod import multimethod

@multimethod
def f(x: int, y: int = 1):
    return y

>>> f(1, 1)
1

>>> f(1, 1.0)
DispatchError: ('f: 0 methods found', [])
@wesselb
Copy link
Member

wesselb commented Oct 9, 2023

Hey @coady! Thanks for opening an issue to point this out. We will adjust the docs shortly and let you know when that’s done. :)

@wesselb
Copy link
Member

wesselb commented Oct 13, 2023

I've removed the respective session from the docs. Thanks again for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants