def __init__(self, time=None):
    'Context for evaluating the Maya DG\n\n        Extension of MDGContext to also accept time as a float. In Maya 2018\n        and above DGContext can also be used as a context manager.\n\n        Arguments:\n            time (float, om.MTime, optional): Time at which to evaluate context\n\n        '
    if (time is not None):
        if isinstance(time, (int, float)):
            time = om.MTime(time, om.MTime.uiUnit())
        super(DGContext, self).__init__(time)
    else:
        super(DGContext, self).__init__()
    self._previousContext = None
Context for evaluating the Maya DG

Extension of MDGContext to also accept time as a float. In Maya 2018
and above DGContext can also be used as a context manager.

Arguments:
    time (float, om.MTime, optional): Time at which to evaluate context
def __init__(self, time=None):
    'Context for evaluating the Maya DG\n\n        Extension of MDGContext to also accept time as a float. In Maya 2018\n        and above DGContext can also be used as a context manager.\n\n        Arguments:\n            time (float, om.MTime, optional): Time at which to evaluate context\n\n        '
    if (time is not None):
        if isinstance(time, (int, float)):
            time = om.MTime(time, om.MTime.uiUnit())
        super(DGContext, self).__init__(time)
    else:
        super(DGContext, self).__init__()
    self._previousContext = None