Skip to content

__init__

roblox.__init__ special

ro.py
A modern, asynchronous wrapper for the Roblox web API.

Copyright 2020-present jmkdev
License: MIT, see LICENSE

__author__ special

__license__ special

__title__ special

__version__ special

version_info: VersionInfo

VersionInfo (tuple)

Represents the package's version info.

Source code in roblox/__init__.py
class VersionInfo(NamedTuple):
    """
    Represents the package's version info.
    """
    major: int
    minor: int
    micro: int
    releaselevel: Literal["alpha", "beta", "candidate", "final"]
    serial: int

major: int

micro: int

minor: int

releaselevel: Literal['alpha', 'beta', 'candidate', 'final']

serial: int

__getnewargs__(self) special

Return self as a plain tuple. Used by copy and pickle.

Source code in roblox/__init__.py
def __getnewargs__(self):
    'Return self as a plain tuple.  Used by copy and pickle.'
    return _tuple(self)

__new__(_cls, major: int, minor: int, micro: int, releaselevel: Literal['alpha', 'beta', 'candidate', 'final'], serial: int) special staticmethod

Create new instance of VersionInfo(major, minor, micro, releaselevel, serial)

__repr__(self) special

Return a nicely formatted representation string

Source code in roblox/__init__.py
def __repr__(self):
    'Return a nicely formatted representation string'
    return self.__class__.__name__ + repr_fmt % self