def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):
    '\n        Construct a new Stream object\n        \n        Parameters\n        ----------\n        arg\n            dict of properties compatible with this constructor or\n            an instance of plotly.graph_objs.scattergeo.Stream\n        maxpoints\n            Sets the maximum number of points to keep on the plots\n            from an incoming stream. If `maxpoints` is set to 50,\n            only the newest 50 points will be displayed on the\n            plot.\n        token\n            The stream id number links a data trace on a plot with\n            a stream. See https://plot.ly/settings for more\n            details.\n\n        Returns\n        -------\n        Stream\n        '
    super(Stream, self).__init__('stream')
    if (arg is None):
        arg = {}
    elif isinstance(arg, self.__class__):
        arg = arg.to_plotly_json()
    elif isinstance(arg, dict):
        arg = _copy.copy(arg)
    else:
        raise ValueError('The first argument to the plotly.graph_objs.scattergeo.Stream \nconstructor must be a dict or \nan instance of plotly.graph_objs.scattergeo.Stream')
    self._skip_invalid = kwargs.pop('skip_invalid', False)
    from plotly.validators.scattergeo import stream as v_stream
    self._validators['maxpoints'] = v_stream.MaxpointsValidator()
    self._validators['token'] = v_stream.TokenValidator()
    _v = arg.pop('maxpoints', None)
    self['maxpoints'] = (maxpoints if (maxpoints is not None) else _v)
    _v = arg.pop('token', None)
    self['token'] = (token if (token is not None) else _v)
    self._process_kwargs(**dict(arg, **kwargs))
    self._skip_invalid = False
Construct a new Stream object

Parameters
----------
arg
    dict of properties compatible with this constructor or
    an instance of plotly.graph_objs.scattergeo.Stream
maxpoints
    Sets the maximum number of points to keep on the plots
    from an incoming stream. If `maxpoints` is set to 50,
    only the newest 50 points will be displayed on the
    plot.
token
    The stream id number links a data trace on a plot with
    a stream. See https://plot.ly/settings for more
    details.

Returns
-------
Stream
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):
    '\n        Construct a new Stream object\n        \n        Parameters\n        ----------\n        arg\n            dict of properties compatible with this constructor or\n            an instance of plotly.graph_objs.scattergeo.Stream\n        maxpoints\n            Sets the maximum number of points to keep on the plots\n            from an incoming stream. If `maxpoints` is set to 50,\n            only the newest 50 points will be displayed on the\n            plot.\n        token\n            The stream id number links a data trace on a plot with\n            a stream. See https://plot.ly/settings for more\n            details.\n\n        Returns\n        -------\n        Stream\n        '
    super(Stream, self).__init__('stream')
    if (arg is None):
        arg = {}
    elif isinstance(arg, self.__class__):
        arg = arg.to_plotly_json()
    elif isinstance(arg, dict):
        arg = _copy.copy(arg)
    else:
        raise ValueError('The first argument to the plotly.graph_objs.scattergeo.Stream \nconstructor must be a dict or \nan instance of plotly.graph_objs.scattergeo.Stream')
    self._skip_invalid = kwargs.pop('skip_invalid', False)
    from plotly.validators.scattergeo import stream as v_stream
    self._validators['maxpoints'] = v_stream.MaxpointsValidator()
    self._validators['token'] = v_stream.TokenValidator()
    _v = arg.pop('maxpoints', None)
    self['maxpoints'] = (maxpoints if (maxpoints is not None) else _v)
    _v = arg.pop('token', None)
    self['token'] = (token if (token is not None) else _v)
    self._process_kwargs(**dict(arg, **kwargs))
    self._skip_invalid = False