Skip to content

INIT - Python#

main #

MyMain #

summary

Source code in src/initpy/main.py
class MyMain:
    """_summary_"""

    def method_main(self, inp: str, /) -> None:
        """_summary_

        Args:
            inp (str): _description_
        """
        print(inp)

method_main(inp) #

summary

Parameters:

Name Type Description Default
inp str

description

required
Source code in src/initpy/main.py
def method_main(self, inp: str, /) -> None:
    """_summary_

    Args:
        inp (str): _description_
    """
    print(inp)

sub #

sub #

MySub #

summary

Source code in src/initpy/sub/sub.py
class MySub:
    """_summary_"""

    def method_sub(self, arg: list[str], /) -> list[str]:
        """_summary_

        Args:
            arg (list[str]): _description_

        Returns:
            list[str]: _description_
        """
        return arg
method_sub(arg) #

summary

Parameters:

Name Type Description Default
arg list[str]

description

required

Returns:

Type Description
list[str]

list[str]: description

Source code in src/initpy/sub/sub.py
def method_sub(self, arg: list[str], /) -> list[str]:
    """_summary_

    Args:
        arg (list[str]): _description_

    Returns:
        list[str]: _description_
    """
    return arg