Skip to content

Commit

Permalink
Handle dynamically patched attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
weibeu committed Mar 28, 2020
1 parent fe5d9f0 commit 5eeb0d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion discordDB/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
]


__version__ = "0.0.2"
__version__ = "0.0.3"
3 changes: 3 additions & 0 deletions discordDB/models/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ class Data(dict):
"""

def __setattr__(self, key, value):
self[key] = value

def __getattribute__(self, item):
try:
data = self[str(item)]
Expand Down

0 comments on commit 5eeb0d5

Please sign in to comment.