

def __init__(self, id, timestamp, contributor=None, minor=None, comment=None, text=None, bytes=None, sha1=None, parent_id=None, model=None, format=None, beginningofpage=False):
    self.id = none_or(id, int)
    '\n        Revision ID : `int`\n        '
    self.timestamp = none_or(timestamp, Timestamp)
    '\n        Revision timestamp : :class:`mw.Timestamp`\n        '
    self.contributor = none_or(contributor, Contributor.deserialize)
    '\n        Contributor meta data : :class:`~mw.xml_dump.Contributor` | `None`\n        '
    self.minor = (False or none_or(minor, bool))
    '\n        Is revision a minor change? : `bool`\n        '
    self.comment = none_or(comment, Comment)
    '\n        Comment left with revision : :class:`~mw.xml_dump.Comment` (behaves like `str`, with additional members)\n        '
    self.text = none_or(text, Text)
    '\n        Content of text : :class:`~mw.xml_dump.Text` (behaves like `str`, with additional members)\n        '
    self.bytes = none_or(bytes, int)
    '\n        Number of bytes of content : `str`\n        '
    self.sha1 = none_or(sha1, str)
    '\n        sha1 hash of the content : `str`\n        '
    self.parent_id = none_or(parent_id, int)
    '\n        Revision ID of preceding revision : `int` | `None`\n        '
    self.model = none_or(model, str)
    '\n        TODO: ??? : `str`\n        '
    self.format = none_or(format, str)
    '\n        TODO: ??? : `str`\n        '
    self.beginningofpage = bool(beginningofpage)
    '\n        Is the first revision of a page : `bool`\n        Used to identify the first revision of a page when using Wikihadoop\n        revision pairs.  Otherwise is always set to False.  Do not expect to use\n        this when processing an XML dump directly.\n        '

dataset/ETHPy150Open mediawiki-utilities/python-mediawiki-utilities/mw/xml_dump/iteration/revision.py Revision.__init__/original