From 39828d07c5e1ff9f16c55ddfd0eb54dafbc5bc69 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Sun, 31 Oct 2021 12:03:09 -0700 Subject: [PATCH] rename RedditThing to RedditBase --- my/reddit/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/my/reddit/common.py b/my/reddit/common.py index 46634ca..9b1ca47 100644 --- a/my/reddit/common.py +++ b/my/reddit/common.py @@ -21,7 +21,9 @@ else: # 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 def raw(self) -> Json: ... @property