Skip to content

Commit 44d58a6

Browse files
committed
Replace unicode dash with ASCII hyphen
This fixes some unicode issues reported in other PRs. I updated the tests to match.
1 parent 5837a5b commit 44d58a6

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.mypy_cache
33
.pytest_cache
44
__pycache__
5+
.vscode
56
dist
67
docs/_build
78
venv

generator/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ def generate_code(self) -> str:
622622
elif len(self.returns) > 1:
623623
doc += '\n'
624624
doc += ':returns: A tuple with the following items:\n\n'
625-
ret_docs = '\n'.join(f'{i}. **{r.name}** {r.generate_doc()}' for i, r
625+
ret_docs = '\n'.join(f'{i}. **{r.name}** - {r.generate_doc()}' for i, r
626626
in enumerate(self.returns))
627627
doc += indent(ret_docs, 4)
628628
if doc:

generator/test_generate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,9 @@ def get_encoded_response(
550550
:param size_only: *(Optional)* Whether to only return the size information (defaults to false).
551551
:returns: A tuple with the following items:
552552
553-
0. **body** *(Optional)* The encoded body as a base64 string. Omitted if sizeOnly is true.
554-
1. **originalSize** Size before re-encoding.
555-
2. **encodedSize** Size after re-encoding.
553+
0. **body** - *(Optional)* The encoded body as a base64 string. Omitted if sizeOnly is true.
554+
1. **originalSize** - Size before re-encoding.
555+
2. **encodedSize** - Size after re-encoding.
556556
'''
557557
params: T_JSON_DICT = dict()
558558
params['requestId'] = request_id.to_json()

0 commit comments

Comments
 (0)