Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Xlib/protocol/rq.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,12 @@ def __getattr__(self, attr):
except KeyError:
raise AttributeError(attr)

def __dir__(self):
attrs = super().__dir__()
if self._data:
attrs.extend(list(self._data.keys()))
return attrs

class DictWrapper(GetAttrData):
def __init__(self, dict):
self.__dict__['_data'] = dict
Expand Down