def checkouts(self, expect_nonempty=True):
    '''The current list of checkouts.'''
    checkouts = self.checkout_state.checkouts.as_list()
    if expect_nonempty and len(checkouts) < 1:
      raise InvalidOperation("no checked out scopes found", suppressable=True)
    return checkouts
dataset/ETHPy150Open bloomreach/zinc/zinc.py/WorkingDir.checkouts/original