Skip to content
Snippets Groups Projects
code-example.py 381 B
Newer Older
William Warriner's avatar
William Warriner committed
import operator as op


class Addable:
    """
    Docstring
    """

    def __init__(self):
        # comment
        self._name = "Addable"
        self._int = 1
        self._verbatim = r"hello"

    @property
    def name(self) -> str:
        return f"{self._name} and {self._int}"

    def add(self, lhs: int, rhs: int) -> int:
        return op.add(lhs, rhs)


var = 1 + 1