swap inheritance order

This commit is contained in:
Sean Breckenridge 2021-10-31 14:06:45 -07:00
parent 2f17480add
commit 70991265e7

View file

@ -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: ...