Skip to content

Commit

Permalink
Rename models.core -> models.github
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo385 committed Jun 24, 2024
1 parent 16069bb commit b8f86ee
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lazy_github/lib/github/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from lazy_github.lib.config import Config
from lazy_github.lib.github.constants import JSON_CONTENT_ACCEPT_TYPE
from lazy_github.models.core import User
from lazy_github.models.github import User


class GithubClient(httpx.AsyncClient):
Expand Down
2 changes: 1 addition & 1 deletion lazy_github/lib/github/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Literal

from lazy_github.lib.github.client import GithubClient
from lazy_github.models.core import Issue, PullRequest, Repository, User
from lazy_github.models.github import Issue, PullRequest, Repository, User

IssueStateFilter = Literal["open"] | Literal["closed"] | Literal["all"]

Expand Down
2 changes: 1 addition & 1 deletion lazy_github/lib/github/pull_requests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from lazy_github.lib.github.client import GithubClient
from lazy_github.lib.github.issues import list_all_issues
from lazy_github.models.core import PullRequest, Repository
from lazy_github.models.github import PullRequest, Repository


async def list_for_repo(client: GithubClient, repo: Repository) -> list[PullRequest]:
Expand Down
2 changes: 1 addition & 1 deletion lazy_github/lib/github/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Literal

from lazy_github.lib.github.client import GithubClient
from lazy_github.models.core import Repository
from lazy_github.models.github import Repository

RepoTypeFilter = Literal["all"] | Literal["owner"] | Literal["member"]
SortDirection = Literal["asc"] | Literal["desc"]
Expand Down
2 changes: 1 addition & 1 deletion lazy_github/lib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from textual.message import Message

from lazy_github.models.core import Issue, PullRequest, Repository
from lazy_github.models.github import Issue, PullRequest, Repository


class RepoSelected(Message):
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lazy_github/ui/widgets/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from textual.app import ComposeResult

from lazy_github.lib.messages import IssuesAndPullRequestsFetched
from lazy_github.models.core import Issue
from lazy_github.models.github import Issue
from lazy_github.ui.widgets.common import LazyGithubContainer, LazyGithubDataTable


Expand Down
2 changes: 1 addition & 1 deletion lazy_github/ui/widgets/pull_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from lazy_github.lib.github.client import GithubClient
from lazy_github.lib.messages import IssuesAndPullRequestsFetched, PullRequestSelected
from lazy_github.lib.string_utils import bold, link, pluralize
from lazy_github.models.core import PullRequest
from lazy_github.models.github import PullRequest
from lazy_github.ui.widgets.command_log import log_event
from lazy_github.ui.widgets.common import LazyGithubContainer, LazyGithubDataTable

Expand Down
2 changes: 1 addition & 1 deletion lazy_github/ui/widgets/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from lazy_github.lib.constants import IS_FAVORITED, favorite_string, private_string
from lazy_github.lib.github.client import GithubClient
from lazy_github.lib.messages import RepoSelected
from lazy_github.models.core import Repository
from lazy_github.models.github import Repository
from lazy_github.ui.widgets.command_log import log_event
from lazy_github.ui.widgets.common import LazyGithubContainer, LazyGithubDataTable

Expand Down

0 comments on commit b8f86ee

Please sign in to comment.