Add types to FileInfo

This commit is contained in:
Jan Hamal Dvořák 2025-03-09 09:51:10 +01:00
parent cf529cae28
commit 1f32d17d19

View file

@ -15,14 +15,12 @@ class FileType(Enum):
class FileItem(GObject.Object):
file_type: FileType
full_path: str
__gtype_name__ = "FileItem"
def __init__(
self,
name: str,
file_type: FileType,
full_path: str,
):
def __init__(self, name: str, file_type: FileType, full_path: str):
super().__init__()
self.name = name
self.file_type = file_type