Skip to content

MyClass

MyClass

Bases: object

This is my example class and it does things in order

__init__

__init__(order: bool = True)

Parameters:

  • order (bool, default: True ) –

    Set if things are done in order or not, by default True

sum

sum(a: float = 1, b: int = 2) -> float

Sum two values

Parameters:

  • a (float, default: 1 ) –

    first value to sum, by default 1

  • b (int, default: 2 ) –

    second value to sum, by default 2

Returns:

  • result ( float ) –

    result of sum

multiply

multiply(a: float = 1, b: float = 2) -> float

Multiply two values and return result

Parameters:

  • a (float, default: 1 ) –

    First value, by default 1

  • b (float, default: 2 ) –

    Second value, by default 2

Returns:

  • result ( float ) –

    result of multiplication