Updated gen docs to properly format examples
This commit is contained in:
parent
dda076e7ba
commit
c9577a125a
|
@ -49,7 +49,7 @@ def format_raises(string, f):
|
|||
|
||||
def format_examples(string, f):
|
||||
|
||||
example_list = re.findall(r'>{3}[\s\w=.("+:,)]+', string)
|
||||
example_list = re.findall(r'>{3}[\s\w=.("+:,\-)]+', string)
|
||||
|
||||
f.write('\n## Examples\n')
|
||||
f.write('```python\n{}\n```\n'.format('\n'.join(example_list)))
|
||||
|
|
Loading…
Reference in New Issue