def get_milestones(self, state=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet):
assert state is github.GithubObject.NotSet or isinstance(state, (str, unicode)), state<EOL>assert sort is github.GithubObject.NotSet or isinstance(sort, (str, unicode)), sort<EOL>assert direction is github.GithubObject.NotSet or isinstance(direction, (str, unicode)), direction<EOL>url_parameters = dict()<EOL>if state is not github.GithubObject.NotSet:<EOL><INDENT>url_parameters["<STR_LIT:state>"] = state<EOL><DEDENT>if sort is not github.GithubObject.NotSet:<EOL><INDENT>url_parameters["<STR_LIT>"] = sort<EOL><DEDENT>if direction is not github.GithubObject.NotSet:<EOL><INDENT>url_parameters["<STR_LIT>"] = direction<EOL><DEDENT>return github.PaginatedList.PaginatedList(<EOL>github.Milestone.Milestone,<EOL>self._requester,<EOL>self.url + "<STR_LIT>",<EOL>url_parameters<EOL>)<EOL>
:calls: `GET /repos/:owner/:repo/milestones <http://developer.github.com/v3/issues/milestones>`_
:param state: string
:param sort: string
:param direction: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Milestone.Milestone`