We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The DocApi.create_doc() method's docstring includes the wrong return type:
DocApi.create_doc()
docraptor-python/docraptor/api/doc_api.py
Lines 203 to 206 in 92acc8d
Similarly for DocApi.create_doc_with_http_info:
DocApi.create_doc_with_http_info
Lines 241 to 244 in 92acc8d
The correct return type here are bytes and tuple(bytes, status_code(int), headers(HTTPHeaderDict)), respectively.
bytes
tuple(bytes, status_code(int), headers(HTTPHeaderDict))
Since Python 3, str is reserved for unicode strings, not the byte strings return by HTTP calls.
str
I know a picture isn't proof but absent a share environment, here's the best I can do.
It doesn't affect the working of the library, but it does anyone using any type checking or type hints, e.g. PyCharm below:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
DocApi.create_doc()
method's docstring includes the wrong return type:docraptor-python/docraptor/api/doc_api.py
Lines 203 to 206 in 92acc8d
Similarly for
DocApi.create_doc_with_http_info
:docraptor-python/docraptor/api/doc_api.py
Lines 241 to 244 in 92acc8d
The correct return type here are
bytes
andtuple(bytes, status_code(int), headers(HTTPHeaderDict))
, respectively.Since Python 3,
str
is reserved for unicode strings, not the byte strings return by HTTP calls.I know a picture isn't proof but absent a share environment, here's the best I can do.
Why does this matter?
It doesn't affect the working of the library, but it does anyone using any type checking or type hints, e.g. PyCharm below:
The text was updated successfully, but these errors were encountered: