-
Notifications
You must be signed in to change notification settings - Fork 0
Output examples
The Car class
The Engine subclass
def __init__(self)
None
def __init__(self)
None
def start(self, time: str, car_key)
starts the engine of the car
def stop(self, a=1, b=2, c=None, *args, **kwargs)
Stop the engine of the car!
def honk(self)
Use
"the"
""horn""
def nested_test()
nested function inside honk
def __str__(self)
Example of a longer multiline-docstring,
everything will still be formatted correctly
@staticmethod
@staticmethod
def funcname(param1: str, param2: int)
The docstring to the static method
async def async_def_test(a, b, c)
Testing coroutines declared with async syntax
def no_class_def_test()
None
def add(a, b)
add to objects
Creates a point on a coordinate plane with values x and y.
def __init__(self, x_init, y_init)
Defines x and y variables
def shift(self, x, y)
Determines where x and y move
def __repr__(self)
None
© Copyright 2021, Axel Gard | Get inkpot with pip