junepark678 / GIRRewrite

Whitespace before closing parenthesis FLK-E202
Style
Minor
a year agoa year old
whitespace before ']'
76            "files": [discord.File(BytesIO(await file.read()), filename=file.filename) for file in message.attachments if file.size < 8_000_000 ]
77        }
78        
79        attachments_too_big = "".join([file.url for file in message.attachments if file.size >= 8_000_000 ])80        footer=f"{attachments_too_big}\n\n[Link to message]({message.jump_url}) | **{member.id}**"
81        content = message.content
82        for mention in message.raw_role_mentions:
whitespace before ']'
73            "username": str(member),
74            "avatar_url": member.display_avatar,
75            "embeds": message.embeds or discord.utils.MISSING,
76            "files": [discord.File(BytesIO(await file.read()), filename=file.filename) for file in message.attachments if file.size < 8_000_000 ]77        }
78        
79        attachments_too_big = "".join([file.url for file in message.attachments if file.size >= 8_000_000 ])
whitespace before ']'
159    for device in devices:
160        ident = device.get("devices")[0]
161        # detailed = all_devices.get(ident)
162        detailed = [ td for td in all_devices if td.get('identifer') == ident ]163        if detailed:
164            detailed = detailed[0]
165            released = detailed.get('released') or '-1'
whitespace before ']'
120    for device in devices:
121        ident = device.get("devices")[0]
122        # detailed = all_devices.get(ident)
123        detailed = [ td for td in all_devices if td.get('identifer') == ident ]124        if detailed:
125            detailed = detailed[0]
126            released = detailed.get('released') or '-1'
whitespace before ']'
58        firmware = version.get("version")
59        firmware = re.sub(r' beta (\d+)', r'b\1', firmware)
60        device_id = device.get("devices")[0]
61        detailed_device = [ d for d in response.get("device") if d.get('key') == device_id ][0]62        name = detailed_device["soc"]
63        new_nick = f"{new_nick} [{name}, {firmware}]"
64