File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class RESTObject(object):
45
45
_attrs : Dict [str , Any ]
46
46
_module : ModuleType
47
47
_parent_attrs : Dict [str , Any ]
48
+ _short_print_attr : Optional [str ] = None
48
49
_updated_attrs : Dict [str , Any ]
49
50
manager : "RESTManager"
50
51
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ def display_dict(d, padding):
380
380
if obj ._id_attr :
381
381
id = getattr (obj , obj ._id_attr )
382
382
print ("%s: %s" % (obj ._id_attr .replace ("_" , "-" ), id ))
383
- if hasattr ( obj , " _short_print_attr" ) :
383
+ if obj . _short_print_attr :
384
384
value = getattr (obj , obj ._short_print_attr ) or "None"
385
385
value = value .replace ("\r " , "" ).replace ("\n " , " " )
386
386
# If the attribute is a note (ProjectCommitComment) then we do
You can’t perform that action at this time.
0 commit comments