Registering a module within a Group: AttributeError: 'Group' object has no attribute 'default_hints'
DavidAntliff opened this issue · 1 comments
DavidAntliff commented
I'm looking to use the Group from #568 module with i3pystatus 5348220 (v3.35) from the head of the current
branch:
from i3pystatus import Status
from i3pystatus.group import Group
group = Group()
group.register("clock")
status.register(group)
This results in the following traceback (I have a dedicated venv for i3pystatus):
Traceback (most recent call last):
File "/home/david/.config/i3/i3pystatus.conf", line 55, in <module>
group.register("clock")
File "/home/david/.config/i3/i3pystatus-venv/lib/python3.10/site-packages/i3pystatus/group.py", line 49, in register
module = Status.register(self, *args, **kwargs)
File "/home/david/.config/i3/i3pystatus-venv/lib/python3.10/site-packages/i3pystatus/core/__init__.py", line 116, in register
hints = self.default_hints.copy() if self.default_hints else {}
AttributeError: 'Group' object has no attribute 'default_hints'
I see this error with other modules like "network" as well as "clock".