MCPcopy Index your code
hub / github.com/praw-dev/praw / parse

Method parse

praw/models/base.py:65–72  ·  view source on GitHub ↗

Return an instance of ``cls`` from ``data``. :param data: The structured data. :param reddit: An instance of :class:`.Reddit`.

(cls, data: dict[str, Any], reddit: praw.Reddit)

Source from the content-addressed store, hash-verified

63
64 @classmethod
65 def parse(cls, data: dict[str, Any], reddit: praw.Reddit) -> PRAWBase:
66 """Return an instance of ``cls`` from ``data``.
67
68 :param data: The structured data.
69 :param reddit: An instance of :class:`.Reddit`.
70
71 """
72 return cls(reddit, _data=data)
73
74 def __init__(self, reddit: praw.Reddit, _data: dict[str, Any] | None) -> None:
75 """Initialize a :class:`.PRAWBase` instance.

Callers 6

fetch_versionsFunction · 0.45
mainFunction · 0.45
valid_versionFunction · 0.45
parse_rstFunction · 0.45
_objectify_dictMethod · 0.45
objectifyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected