This commit is contained in:
Ari Archer 2021-11-28 16:02:37 +02:00
parent f0124c7834
commit cf0eadc2b6
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
import logging.handlers
import signal
import threading
from curses import window, wrapper
from curses import window, wrapper # type: ignore
from functools import partial
from types import FrameType

View file

@ -85,7 +85,7 @@ EXTRA_FILE_CHOOSER_PATHS = ["..", "/", "~"]
CUSTOM_KEYBINDS: Dict[str, Dict[str, Any]] = {}
if os.path.isfile(CONFIG_FILE):
config_params = runpy.run_path(CONFIG_FILE)
config_params = runpy.run_path(CONFIG_FILE) # type: ignore
for param, value in config_params.items():
if param.isupper():
globals()[param] = value

View file

@ -3,7 +3,7 @@ import logging
from datetime import datetime
from typing import Any, Dict, List, Optional, Tuple, Union, cast
from _curses import window
from _curses import window # type: ignore
from arigram import config
from arigram.colors import (
@ -212,7 +212,7 @@ class ChatView:
self, current: int, chats: List[Dict[str, Any]], title: str = "Chats"
) -> None:
self.win.erase()
line = curses.ACS_VLINE
line = curses.ACS_VLINE # type: ignore
width = self.w - 1
self.win.vline(0, width, line, self.h)