This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Unusual docstring format #6
Labels
Comments
Didn't know about this. Will be refactoring the docstrings to conform with PEP 287. reST seems like an obvious choice here. Thanks for pointing out 😄 |
👍 - it's not a big deal, but it's one of those useful little things that gets overlooked a lot. |
Fixed in 295ee0b. Closing issue. |
|
An example if you don't mind @balta2ar ? Would surely add it up |
Something like this: @defer.inlineCallbacks
def _update_models(self, cur_time,
new_server_stats, max_time_server):
"""
Updates global models and models of budget objects.
@param cur_time: Current time
@type cur_time: datetime.datetime
@param new_server_stats: New server stats
(received since last update).
@type new_server_stats: ProcessedServerStats
@param max_time_server: Timestamp (unix timestamp) of latest
update got from server[s].
@type max_time_server: float
@return: Update models running deferred.
@rtype: defer.Deferred(dict[str, ComputationResult])
""" |
Yuri, that isn't rst. It would be more like this:
|
@gdude2002 Absolutely, that was just an example of |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While this isn't really a huge problem, you may wish to reformat your docstrings according to the established formats.
PEP 287 recommends that reST (reStructuredText) format be used, but Epytext is popular as well - They're used because Python IDEs are often able to parse them to get more information about the things they document, for example, for auto-completion.
The text was updated successfully, but these errors were encountered: