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

Method __setattr__

praw/models/reddit/modmail.py:322–326  ·  view source on GitHub ↗

Objectify the AUTHOR_ATTRIBUTE attribute.

(self, attribute: str, value: Any)

Source from the content-addressed store, hash-verified

320 STR_FIELD = "id"
321
322 def __setattr__(self, attribute: str, value: Any) -> None:
323 """Objectify the AUTHOR_ATTRIBUTE attribute."""
324 if attribute == self.AUTHOR_ATTRIBUTE:
325 value = self._reddit._objector.objectify(data=value)
326 super().__setattr__(attribute, value)
327
328
329class ModmailAction(ModmailObject):

Callers

nothing calls this directly

Calls 1

objectifyMethod · 0.45

Tested by

no test coverage detected