Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fixed some bugs with mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelDobariya38 committed Nov 7, 2023
1 parent 3e1dea3 commit 224c095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/datahandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def save_data(website: str, password: str) -> None:
with open(DATA_FILE, "a") as f:
f.write(data + '\n')

def load_data() -> List[str]:
def load_data() -> List[list[str]]:
data_list = []
with open(DATA_FILE) as f:
data = f.read()
Expand Down
5 changes: 3 additions & 2 deletions src/app/metadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""CHANGES IN THIS FILE CAN LEAD TO ADVERSE EFFECTS AND CAN EVEN CRASH THE APPLICATION"""

import os
from typing import List

# App
NAME: str = "Smart Manager"
Expand All @@ -9,8 +10,8 @@
REPO: str = "https://github.com/JeelDobariya38/Smart-Manager"

# Paths (all path are relative to this file)
__DATADIR: str = ["..", "..", "..", "data"]
__RESOURCEDIR: str = ["..", "..", "..", "resource"]
__DATADIR: list[str] = ["..", "..", "..", "data"]
__RESOURCEDIR: list[str] = ["..", "..", "..", "resource"]

# FilePath (Do Not Change this session, instead change above "Paths" session)
DATADIR_PATH: str = os.path.join(__file__, os.path.sep.join(__DATADIR)) + os.path.sep
Expand Down

0 comments on commit 224c095

Please sign in to comment.