mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Update write_docstring.py to make the template of the prompt more clear
This commit is contained in:
parent
cfb26155c6
commit
50cdba3052
1 changed files with 6 additions and 4 deletions
|
|
@ -23,7 +23,9 @@ class ExampleError(Exception):
|
|||
```
|
||||
|
||||
### Output Example
|
||||
```python{example}```
|
||||
```python
|
||||
{example}
|
||||
```
|
||||
'''
|
||||
|
||||
# https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
|
||||
|
|
@ -120,9 +122,9 @@ class ExampleError(Exception):
|
|||
'''
|
||||
|
||||
_python_docstring_style = {
|
||||
"google": PYTHON_DOCSTRING_EXAMPLE_GOOGLE,
|
||||
"numpy": PYTHON_DOCSTRING_EXAMPLE_NUMPY,
|
||||
"sphinx": PYTHON_DOCSTRING_EXAMPLE_SPHINX,
|
||||
"google": PYTHON_DOCSTRING_EXAMPLE_GOOGLE.strip(),
|
||||
"numpy": PYTHON_DOCSTRING_EXAMPLE_NUMPY.strip(),
|
||||
"sphinx": PYTHON_DOCSTRING_EXAMPLE_SPHINX.strip(),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue