Skip to content

Commit

Permalink
Clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbende committed Dec 11, 2023
1 parent 4011380 commit da4c2cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
7 changes: 3 additions & 4 deletions cozy/ui/library_view.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import functools
from typing import Optional

from gi.repository import Gtk, Adw
from gi.repository.Gtk import Builder
from gi.repository import Adw, Gtk

from cozy.ext import inject
from cozy.ui.widgets.book_element import BookElement
from cozy.ui.delete_book_view import DeleteBookView
from cozy.ui.widgets.filter_list_box import FilterListBox
from cozy.view_model.library_view_model import LibraryViewModel, LibraryViewMode, LibraryPage
from cozy.view_model.library_view_model import LibraryViewModel, LibraryViewMode

READER_PAGE = "reader"
AUTHOR_PAGE = "author"
Expand All @@ -23,7 +22,7 @@
class LibraryView:
_view_model: LibraryViewModel = inject.attr(LibraryViewModel)

def __init__(self, builder: Builder):
def __init__(self, builder: Gtk.Builder):
self._builder = builder
self._connected_book_element: Optional[BookElement] = None

Expand Down
8 changes: 0 additions & 8 deletions cozy/view_model/library_view_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from enum import Enum, auto
from typing import Optional

from gi.repository import Gtk

import cozy.ext.inject as inject
from cozy.application_settings import ApplicationSettings
from cozy.architecture.event_sender import EventSender
Expand All @@ -31,12 +29,6 @@ class LibraryViewMode(Enum):
READER = auto()


class LibraryPage(Enum):
NONE = auto()
FILTER = auto()
BOOKS = auto()


class LibraryViewModel(Observable, EventSender):
_application_settings: ApplicationSettings = inject.attr(ApplicationSettings)
_fs_monitor: FilesystemMonitor = inject.attr("FilesystemMonitor")
Expand Down

0 comments on commit da4c2cf

Please sign in to comment.