-
Notifications
You must be signed in to change notification settings - Fork 42
python: improve documentation #254
New issue
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
Conversation
|
||
.. py:class:: Bytes(value: bytes) | ||
|
||
A byte array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this match the description In _foglove_py/__init__.pyi
?
A byte array | |
A byte array, encoded as a base64-encoded string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. It's the other way around; the python implementation does the encoding for you. I've updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, in that case I think this is just missing a period.
|
||
.. py:class:: Bytes(value: bytes) | ||
|
||
A byte array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, in that case I think this is just missing a period.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
:param host: The host to bind to. | ||
:type host: Optional[str] | ||
:param port: The port to bind to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add the default values here.
This improves the python documentation & example; notably:
For the first two items, I resorted to manual documentation for the reasons noted in index.rst. This is unfortunate, and I think we're going to need to look into some sort of doc testing down the line, but it's better than missing documentation today.