code: def iter_issues(self,
                      milestone=None,
                      state=None,
                      assignee=None,
                      mentioned=None,
                      labels=None,
                      sort=None,
                      direction=None,
                      since=None,
                      number=-1,
                      etag=None):
          url = self._build_url('issues', base_url=self._api)
          params = {'assignee': assignee, 'mentioned': mentioned}
          if milestone in ('*', 'none') or isinstance(milestone, int):
              params['milestone'] = milestone
          self._remove_none(params)
          params.update(
              issue_params(None, state, labels, sort, direction,
                           since)
          )
          return self._iter(int(number), url, Issue, params, etag)