File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1243,6 +1243,8 @@ def get_user(
12431243 self , username : Optional [str ] = None
12441244 ) -> Optional [Dict [str , Any ]]:
12451245 """Get user info using REST endpoint.
1246+
1247+ User contains only explicitly set attributes in 'attrib'.
12461248
12471249 Args:
12481250 username (Optional[str]): Username.
@@ -1261,7 +1263,8 @@ def get_user(
12611263 response .raise_for_status ()
12621264 user = response .data
12631265
1264- # NOTE This would fill all missing attributes with 'None'
1266+ # NOTE Server does return only filled attributes right now.
1267+ # This would fill all missing attributes with 'None'.
12651268 # for attr_name in self.get_attributes_for_type("user"):
12661269 # user["attrib"].setdefault(attr_name, None)
12671270
You can’t perform that action at this time.
0 commit comments