class praw.models.reddit.base.RedditBase(reddit: Reddit, _data: Dict[str, Any])

Base class that represents actual Reddit objects.

__init__(reddit: Reddit, _data: Dict[str, Any])

Initialize a RedditBase instance (or a subclass).

Parameters:reddit – An instance of Reddit.
classmethod parse(data: Dict[str, Any], reddit: Reddit) → Any

Return an instance of cls from data.

  • data – The structured data.
  • reddit – An instance of Reddit.