You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defsome_function(foo, bar=None):
"""Short description. Detailed description of the function... Args: foo: Some description. bar: Some description. Returns: What the function returns, ideally with example if it's complicated. Raises: IOError: When the error occurs. """pass
Docstring format for classes:
classSomeClass(object):
"""Short class summary. Detailed information about the class... Attributes: foo: Some description. bar: Some description. """def__init__(self, foo=True):
"""Inits SomeClass."""self.foo=fooself.bar=0