rename RedditThing to RedditBase
This commit is contained in:
parent
1575422d67
commit
39828d07c5
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ else:
|
||||||
|
|
||||||
|
|
||||||
# common fields across all the Protocol classes, so generic code can be written
|
# common fields across all the Protocol classes, so generic code can be written
|
||||||
class RedditThing(Protocol):
|
# doesnt seem we can subclass this to the other Protocols though sadly, see
|
||||||
|
# https://www.python.org/dev/peps/pep-0544/#toc-entry-28
|
||||||
|
class RedditBase(Protocol):
|
||||||
@property
|
@property
|
||||||
def raw(self) -> Json: ...
|
def raw(self) -> Json: ...
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue