class MainClass:
def __init__(self, a: int, b: int):
self.a = a * 2
self.b = b * 3
def __repr__(self):
return f'a - {self.a} ; b - {self.b}'
class ChildClass(MainClass):
def __init__(self, a: int, b: int, c: int):
self.c = c
super().__init__(a, b)
def __repr__(self):
return f'a - {self.a} ; b - {self.b} ; c - {self.c}'
if __name__ == "__main__":
one = MainClass(1, 2)
two = ChildClass(1, 2, 3)
print(one)
print(two)
<scheme name="Dark" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2023-02-10T19:06:58</property>
<property name="ide">Python</property>
<property name="ideVersion">2022.3.0.0</property>
<property name="modified">2023-02-10T19:07:10</property>
<property name="originalScheme">_@user_Dark</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="549159" />
<option name="ANNOTATIONS_COLOR" value="8d9199" />
<option name="ANNOTATIONS_LAST_COMMIT_COLOR" value="ced0d6" />
<option name="CARET_ROW_COLOR" value="2b2d30" />
<option name="CONSOLE_BACKGROUND_KEY" value="1e1f22" />
<option name="DELETED_LINES_COLOR" value="868a91" />
<option name="DIFF_SEPARATORS_BACKGROUND" value="2b2d30" />
<option name="DOCUMENTATION_COLOR" value="2b2d30" />
<option name="ERROR_HINT" value="402929" />
<option name="IGNORED_ADDED_LINES_BORDER_COLOR" value="549159" />
<option name="IGNORED_DELETED_LINES_BORDER_COLOR" value="868a91" />
<option name="IGNORED_MODIFIED_LINES_BORDER_COLOR" value="375fad" />
<option name="INDENT_GUIDE" value="313438" />
<option name="INFORMATION_HINT" value="2b2d30" />
<option name="LINE_NUMBERS_COLOR" value="4e5157" />
<option name="LINE_NUMBER_ON_CARET_ROW_COLOR" value="9da0a8" />
<option name="LOOKUP_COLOR" value="2b2d30" />
<option name="METHOD_SEPARATORS_COLOR" value="43454a" />
<option name="MODIFIED_LINES_COLOR" value="375fad" />
<option name="NOTIFICATION_BACKGROUND" value="25324d" />
<option name="PROMOTION_PANE" value="25324d" />
<option name="QUESTION_HINT" value="25324d" />
<option name="RECENT_LOCATIONS_SELECTION" value="2b2d30" />
<option name="RIGHT_MARGIN_COLOR" value="393b40" />
<option name="SELECTED_INDENT_GUIDE" value="6f737a" />
<option name="VCS_ANNOTATIONS_COLOR_1" value="2f5194" />
<option name="VCS_ANNOTATIONS_COLOR_2" value="2d416b" />
<option name="VCS_ANNOTATIONS_COLOR_3" value="283754" />
<option name="VCS_ANNOTATIONS_COLOR_4" value="242d42" />
<option name="VCS_ANNOTATIONS_COLOR_5" value="22252e" />
<option name="VISUAL_INDENT_GUIDE" value="2b2d30" />
<option name="WHITESPACES_MODIFIED_LINES_COLOR" value="52433d" />
</colors>
<attributes>
<option name="BREADCRUMBS_CURRENT">
<value>
<option name="FOREGROUND" value="dfe1e5" />
<option name="BACKGROUND" value="2b2d30" />
</value>
</option>
<option name="BREADCRUMBS_DEFAULT">
<value>
<option name="FOREGROUND" value="9da0a8" />
</value>
</option>
<option name="BREADCRUMBS_HOVERED">
<value>
<option name="FOREGROUND" value="dfe1e5" />
<option name="BACKGROUND" value="2b2d30" />
</value>
</option>
<option name="BREADCRUMBS_INACTIVE">
<value>
<option name="FOREGROUND" value="6f737a" />
</value>
</option>
<option name="CODE_LENS_BORDER_COLOR">
<value>
<option name="EFFECT_COLOR" value="868a91" />
</value>
</option>
<option name="FOLLOWED_HYPERLINK_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="a571e6" />
<option name="EFFECT_COLOR" value="a571e6" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="MATCHED_BRACE_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="ced9d2" />
<option name="BACKGROUND" value="326146" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="TEXT">
<value>
<option name="FOREGROUND" value="a9b7c6" />
<option name="BACKGROUND" value="1e1f22" />
</value>
</option>
<option name="WARNING_ATTRIBUTES">
<value>
<option name="BACKGROUND" value="3d3322" />
<option name="ERROR_STRIPE_COLOR" value="be9117" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
</attributes>
</scheme>
for d in data['result']:
await ctx.send('[{}] {} — {}'.format(*(d[i] for i in ['clan_tag','nickname','score'])))
message = "\n".join(f"[{elem['clan_tag']}] {elem['nickname']} - {elem['score']}" for elem in data['result'])
await ctx.send(message)