harper/harper-python/tests/test_sources/docstrings.py
Artem Golubin 041d5a0b16
feat(core): Add support for Python docstrings (#2038)
* feat(core): Add support for Python docstrings

* Remove unused dependency

* Revert "Remove unused dependency"

This reverts commit 5720b2eced.

* Fix for harper-ls

* Fix handling of multiline strings

* Fix merge artifact

* Formatting fix

* Do not pass quotes for linting

---------

Co-authored-by: Elijah Potter <me@elijahpotter.dev>
2025-10-01 20:36:39 +00:00

22 lines
No EOL
386 B
Python

"""Errors should never passs silently"""
def main():
"""Beautifull is better than ugly."""
class Main:
"""Explicit is better than implicet."""
def __init__(self):
"""Flat is bettter than nested."""
pass
def multiline_docstring(action_name: str):
"""Perform the specified action.
Available actions:
- stop
- start
- pause
"""