Skip to content

Commit ff94eb1

Browse files
authored
Merge pull request googleapis#107 from Psynbiotik/MicroDictPropogation
Have values of type dict returned also be converted to type MicroDict.
2 parents 9f84dbe + ab49e4a commit ff94eb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

O365/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def __getitem__(self, key):
1717
result = super(MicroDict, self).get(key[:1].lower() + key[1:], None)
1818
if result is None:
1919
result = super(MicroDict, self).get(key[:1].upper() + key[1:])
20+
if type(result) is dict:
21+
result = MicroDict(result)
2022
return result
2123

2224

0 commit comments

Comments
 (0)