my_package.my_module

This module provides an example class and a function for basic arithmetic operations.

Functions

my_function(a, b)

Add two integers together.

Classes

MyClass(my_arg)

A class that represents a simple example with an integer argument.

class my_package.my_module.MyClass(my_arg: int)[source]

Bases: object

A class that represents a simple example with an integer argument.

Parameters:

my_arg (int) – An integer argument that will be stored as an instance attribute.

Variables:

my_arg (int) – The integer argument provided during initialization.

my_package.my_module.my_function(a: int, b: int) int[source]

Add two integers together.

Parameters:
  • a (int) – The first integer to be added.

  • b (int) – The second integer to be added.

Returns:

The sum of the two input integers.

Return type:

int