Skip to content

Base

ropython.shared.base

Base

This defines the base class that everything inherits except the client.

Source code in ropython/shared/base.py
class Base:
    """
    This defines the base class that everything inherits except the client.
    """

    def __repr__(self) -> str:
        return f"<{self.__class__.__name__} id={self.Id}>"

    def __int__(self) -> int:
        return self.Id

__int__(self) -> int special

Source code in ropython/shared/base.py
def __int__(self) -> int:
    return self.Id

__repr__(self) -> str special

Source code in ropython/shared/base.py
def __repr__(self) -> str:
    return f"<{self.__class__.__name__} id={self.Id}>"