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

will docstring has broken example #18

Closed
alexmojaki opened this issue Aug 10, 2020 · 1 comment
Closed

will docstring has broken example #18

alexmojaki opened this issue Aug 10, 2020 · 1 comment

Comments

@alexmojaki
Copy link
Collaborator

alexmojaki commented Aug 10, 2020

This code raises an error AttributeError: 'function' object has no attribute 'abc':

    def i_will():
        will = varname.will()
        func = lambda: 0
        func.will = will
        return func

    func = i_will().abc

Also, you use:

```python

Do you have some tool that recognises that? Docstrings aren't typically treated like markdown in my experience.

@alexmojaki alexmojaki changed the title will docstring has broken example: will docstring has broken example Aug 10, 2020
@pwwang pwwang closed this as completed in 1e442e2 Aug 10, 2020
@alexmojaki
Copy link
Collaborator Author

Your commit doesn't touch the docstring. It's the docstring that's wrong here, not the function.

@alexmojaki alexmojaki reopened this Aug 10, 2020
@pwwang pwwang closed this as completed in 7793f9c Aug 10, 2020
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

1 participant