Skip to content

Commit

Permalink
fixed nox issues + steps towards #43
Browse files Browse the repository at this point in the history
  • Loading branch information
GiorgosXou committed Oct 18, 2024
1 parent b1f0809 commit a2e4090
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion TUIFIManager/TUIProps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .TUIFile import TUIFile, VISIBLE_FILENAME_LINES
from datetime import datetime
from os.path import basename, sep, join, getsize
from typing import List
from copy import copy
from os import stat, walk
import unicurses
Expand Down Expand Up @@ -190,7 +191,7 @@ def __set_properties_of(self, tuifiles, directory:str):
self.refresh()


def create_tui_for(self, tuifiles:list[TUIFile], directory:str): # kinda the same as TUIMenu's create
def create_tui_for(self, tuifiles:List[TUIFile], directory:str): # kinda the same as TUIMenu's create
if self.exists: unicurses.werase(self.pad)

self.inode = None
Expand Down
3 changes: 2 additions & 1 deletion TUIFIManager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from time import time
from os import sep, access, W_OK, R_OK
from math import log10
from typing import Union
from os.path import basename
from .TUIMenu import TUIMenu
from .TUIFile import TUIFile
Expand Down Expand Up @@ -1589,7 +1590,7 @@ def __perform_key_enter(self):
self.open(self.__clicked_file)


def __reset_index_of_clicked_file(self) -> bool|None:
def __reset_index_of_clicked_file(self) -> Union[bool|None]:
if self.__index_of_clicked_file is not None: return False # sus, maybe elif len(self.files) == 2 ? in case of any issue with "folder" ".."
self.select(self.files[0])
self.__clicked_file = self.files[0]
Expand Down

0 comments on commit a2e4090

Please sign in to comment.