From 06b85b0ec0f10d85a5a80d027db6e247a5d62325 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 5 May 2022 11:35:26 -0400 Subject: [PATCH] Fix two styling nits with fmt: off --- discord/activity.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/discord/activity.py b/discord/activity.py index 4b80864cf..802c1654c 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -424,13 +424,11 @@ class Game(BaseActivity): if self._end: timestamps['end'] = self._end - # fmt: off return { 'type': ActivityType.playing.value, 'name': str(self.name), - 'timestamps': timestamps # type: ignore + 'timestamps': timestamps, # type: ignore } - # fmt: on def __eq__(self, other: object) -> bool: return isinstance(other, Game) and other.name == self.name @@ -528,14 +526,12 @@ class Streaming(BaseActivity): return name[7:] if name[:7] == 'twitch:' else None def to_dict(self) -> ActivityPayload: - # fmt: off ret: Dict[str, Any] = { 'type': ActivityType.streaming.value, 'name': str(self.name), 'url': str(self.url), - 'assets': self.assets + 'assets': self.assets, } - # fmt: on if self.details: ret['details'] = self.details return ret # type: ignore