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

Typo in patch_to docs #500

Closed
gsganden opened this issue Dec 9, 2022 · 0 comments
Closed

Typo in patch_to docs #500

gsganden opened this issue Dec 9, 2022 · 0 comments

Comments

@gsganden
Copy link
Contributor

gsganden commented Dec 9, 2022

The patch_to docs contain the following passage:

Additionally you can specify that the function you want to patch should be a class attribute with as_prop = False

@patch_to(_T5, as_prop=True)
def add_ten(self): return self + 10

t = _T5(4)
test_eq(t.add_ten, 14)

I take it that the text should say "as_prop=True" instead of "as_prop = False", so that it matches the example and the statement "you can specify that the function you want to patch should be a class attribute".

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