diff --git a/heaven.py b/heaven.py index dbb93b9..f30d566 100644 --- a/heaven.py +++ b/heaven.py @@ -17,8 +17,15 @@ def god_is_a_girl(): raise GenderException("No zhe isn't") +class Soul: + def __post_init__(self): + if callable(self.name): + # invoke true name + self.name().append(self) + + @dataclass -class Dog: +class Dog(Soul): name: str def __del__(self): @@ -42,7 +49,10 @@ class Chaos: def load_module(n): sys.modules[n] = Dog + __call__ = a_place_on_earth + +@Dog class Void: def append(s, v): v.__class__ = Chaos