Module aiogithubapi.models.milestone

GitHub milestone data class.

Expand source code
"""GitHub milestone data class."""
from __future__ import annotations

from .base import GitHubDataModelBase
from .user import GitHubUserModel


class GitHubMilestoneModel(GitHubDataModelBase):
    """GitHub milestone data class."""

    closed_at: str | None = None
    closed_issues: int | None = None
    created_at: str | None = None
    description: str | None = None
    due_on: str | None = None
    html_url: str | None = None
    id: int | None = None
    labels_url: str | None = None
    number: int | None = None
    open_issues: int | None = None
    state: str | None = None
    title: str | None = None
    updated_at: str | None = None
    url: str | None = None
    creator: GitHubUserModel | None = None

    def _generate_creator(self, data: dict) -> GitHubUserModel:
        """Generate the creator."""
        return GitHubUserModel(data)

Classes

class GitHubMilestoneModel (data: Dict[str, Any])

GitHub milestone data class.

Init.

Expand source code
class GitHubMilestoneModel(GitHubDataModelBase):
    """GitHub milestone data class."""

    closed_at: str | None = None
    closed_issues: int | None = None
    created_at: str | None = None
    description: str | None = None
    due_on: str | None = None
    html_url: str | None = None
    id: int | None = None
    labels_url: str | None = None
    number: int | None = None
    open_issues: int | None = None
    state: str | None = None
    title: str | None = None
    updated_at: str | None = None
    url: str | None = None
    creator: GitHubUserModel | None = None

    def _generate_creator(self, data: dict) -> GitHubUserModel:
        """Generate the creator."""
        return GitHubUserModel(data)

Ancestors

Class variables

var closed_at : str | None
var closed_issues : int | None
var created_at : str | None
var creator : GitHubUserModel | None
var description : str | None
var due_on : str | None
var html_url : str | None
var id : int | None
var labels_url : str | None
var number : int | None
var open_issues : int | None
var state : str | None
var title : str | None
var updated_at : str | None
var url : str | None

Inherited members