From 5d2eadbcc6f2a64a893f4b59aea31905300b1b74 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Sun, 31 Oct 2021 14:24:16 -0700 Subject: [PATCH] reddit: swap inheritance order for Protocol (#183) --- my/reddit/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/my/reddit/common.py b/my/reddit/common.py index c4a1f81..3bb0279 100644 --- a/my/reddit/common.py +++ b/my/reddit/common.py @@ -35,23 +35,23 @@ class RedditBase(Protocol): # Note: doesn't include GDPR Save's since they don't have the same metadata -class Save(Protocol, RedditBase): +class Save(RedditBase, Protocol): @property def subreddit(self) -> str: ... # Note: doesn't include GDPR Upvote's since they don't have the same metadata -class Upvote(Protocol, RedditBase): +class Upvote(RedditBase, Protocol): @property def title(self) -> str: ... # From rexport, pushshift and the reddit GDPR export -class Comment(Protocol, RedditBase): +class Comment(RedditBase, Protocol): pass # From rexport and the GDPR export -class Submission(Protocol, RedditBase): +class Submission(RedditBase, Protocol): @property def title(self) -> str: ...