Does this sub have any properties to print?
(sub)
| 112 | |
| 113 | |
| 114 | def has_members(sub): |
| 115 | """Does this sub have any properties to print?""" |
| 116 | for p in list(sub['properties'].keys()): |
| 117 | if len(sub['properties'][p]) == 0: |
| 118 | continue |
| 119 | if 'deprecated' in sub['properties'][p]: |
| 120 | continue |
| 121 | return True |
| 122 | return False |
| 123 | |
| 124 | |
| 125 | def output_members(sub, indent=''): |