Source code for package_helper_test_2022_01_18_17h12.sub_package_2.my_class_2

# -*- coding: utf-8 -*-
"""
Copyright François Durand
fradurand@gmail.com

This file is part of Package Helper Test 2022 01 18 17h12.
"""


[docs]class MyClass2: """A whatever-you-are-doing. Parameters ---------- a : float The `a` of the system. b : float The `b` of the system. Examples -------- >>> my_object = MyClass2(a = 5, b = 3) """ def __init__(self, a: float, b: float): self.a = a self.b = b
[docs] def addition(self) -> float: """Add `a` and `b`. Returns ------- Float The sum of `a` and `b`. Examples -------- >>> my_object = MyClass2(a=5, b=3) >>> my_object.addition() 8 """ return self.a + self.b