def __init__(self, img, x=0, y=0,
            blend_src=gl.GL_SRC_ALPHA, blend_dest=gl.GL_ONE_MINUS_SRC_ALPHA,
            batch=None, parent_state=None, **attributes):

        # default parent_state to batch state if it has one
        if parent_state is None and hasattr(batch, 'state'):
            parent_state = batch.state

        super(Sprite, self).__init__(img, x, y, blend_src, blend_dest,
            batch, parent_state)

        # if the parent wants us to register then do so
        if self._batch is not None and hasattr(self._batch, 'add_sprite'):
            self._batch.add_sprite(self)

        # arbitrary attributes
        self.__dict__.update(attributes)
Returns the first alias for this query, after increasing its reference
dataset/ETHPy150Open ardekantur/pyglet/contrib/spryte/spryte.py/Sprite.__init__--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/sql/query.py/BaseQuery.get_initial_alias