reddit: swap inheritance order for Protocol (#183)
This commit is contained in:
parent
8422c6e420
commit
5d2eadbcc6
1 changed files with 4 additions and 4 deletions
|
@ -35,23 +35,23 @@ class RedditBase(Protocol):
|
||||||
|
|
||||||
|
|
||||||
# Note: doesn't include GDPR Save's since they don't have the same metadata
|
# Note: doesn't include GDPR Save's since they don't have the same metadata
|
||||||
class Save(Protocol, RedditBase):
|
class Save(RedditBase, Protocol):
|
||||||
@property
|
@property
|
||||||
def subreddit(self) -> str: ...
|
def subreddit(self) -> str: ...
|
||||||
|
|
||||||
# Note: doesn't include GDPR Upvote's since they don't have the same metadata
|
# Note: doesn't include GDPR Upvote's since they don't have the same metadata
|
||||||
class Upvote(Protocol, RedditBase):
|
class Upvote(RedditBase, Protocol):
|
||||||
@property
|
@property
|
||||||
def title(self) -> str: ...
|
def title(self) -> str: ...
|
||||||
|
|
||||||
|
|
||||||
# From rexport, pushshift and the reddit GDPR export
|
# From rexport, pushshift and the reddit GDPR export
|
||||||
class Comment(Protocol, RedditBase):
|
class Comment(RedditBase, Protocol):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# From rexport and the GDPR export
|
# From rexport and the GDPR export
|
||||||
class Submission(Protocol, RedditBase):
|
class Submission(RedditBase, Protocol):
|
||||||
@property
|
@property
|
||||||
def title(self) -> str: ...
|
def title(self) -> str: ...
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue