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

Docstrings #19

Open
hamzamohdzubair opened this issue Jul 15, 2021 · 2 comments
Open

Docstrings #19

hamzamohdzubair opened this issue Jul 15, 2021 · 2 comments

Comments

@hamzamohdzubair
Copy link

What is a good practice or recommendation for writing docstrings that are simple and clean to write and work well with documentation tools.

Related Stackoverflow quesion

@0101
Copy link
Owner

0101 commented Jul 15, 2021

I would use standard Python docstring in a def statement, see answer.

It would be possible to add some docstring feature to pipe so you could do something like this:

get_py_files = pipe("Get all Python files from directory") | os.listdir | where(X.endswith('.py'))

Not sure if it's worth it.

@hamzamohdzubair
Copy link
Author

I see this library becoming the standard for people who think functionally. Writing functions like this in a large codebase is simply impractical given the importance of docstrings for large code bases. I would say it's definitely worth it.

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