class Aliases:
@property
def commands(self) -> tuple:
return (
id(self.new_alias), id(self.aliases)
)
def new_alias(self):
return 1
@property
def aliases(self):
return 1
def setup():
aliases = Aliases()
print(aliases.commands, id(aliases.commands))
if __name__ == '__main__':
setup()