-
Notifications
You must be signed in to change notification settings - Fork 6k
Add missing docs utils #912
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
|
Can we add the docs modification needed for Filters.status_update.new_chat_members in here? There's a place were it;s missing an s if i'm not mistaken? |
Eldinnie
left a comment
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.
I left some comments. Some are debatable
| telegram.utils.promise Module | ||
| ============================= | ||
|
|
||
| .. automodule:: telegram.utils.promise |
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.
I think this should be autoclass
| telegram.utils.request Module | ||
| ============================= | ||
|
|
||
| .. automodule:: telegram.utils.request |
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.
Autoclass aswell
telegram/utils/promise.py
Outdated
| """A simple Promise implementation for use with the run_async decorator, DelayQueue etc. | ||
| Args: | ||
| pooled_function (callable): The callable that will be called concurrently. |
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.
:obj:`callable`
telegram/utils/promise.py
Outdated
| Args: | ||
| pooled_function (callable): The callable that will be called concurrently. | ||
| args (list|tuple): Positional arguments for ``pooled_function`` |
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.
:obj:`list`|:obj:`tuple`
telegram/utils/promise.py
Outdated
| Args: | ||
| pooled_function (callable): The callable that will be called concurrently. | ||
| args (list|tuple): Positional arguments for ``pooled_function`` | ||
| kwargs (dict): Keyword arguments for ``pooled_function`` |
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.
:obj:`dict`
telegram/utils/promise.py
Outdated
| Attributes: | ||
| pooled_function (callable): The callable that will be called concurrently. | ||
| args (list|tuple): Positional arguments for ``pooled_function`` |
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.
Same as above
telegram/utils/promise.py
Outdated
| self._exception = None | ||
|
|
||
| def run(self): | ||
| """Calls the ``pooled_function`` callable.""" |
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.
I think we can add : attr:`pooled_function` here
telegram/utils/promise.py
Outdated
| calculated. ``None`` means indefinite. Default is ``None``. | ||
| Returns: | ||
| Returns the return value of ``pooled_function`` or ``None`` if the ``timeout`` expires. |
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.
:attr:`pooled_function` again
telegram/utils/promise.py
Outdated
| Returns the return value of ``pooled_function`` or ``None`` if the ``timeout`` expires. | ||
| Raises: | ||
| Any exception raised by ``pooled_function``. |
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.
and here too
telegram/utils/promise.py
Outdated
|
|
||
| @property | ||
| def exception(self): | ||
| """The exception raised by ``pooled_function`` or ``None`` if no exception has been raised |
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.
And here
[CI skip]
Adds documentation files for
telegram.utils.promiseandtelegram.utils.requestand some new docstrings/improvements.