Add additional typing

This commit is contained in:
Timmy Welch 2023-04-25 00:07:39 -07:00
parent 1dc93c351d
commit c07e1c4168
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class Archiver(Protocol):
"""
enabled: bool = True
def __init__(self):
def __init__(self) -> None:
self.path = pathlib.Path()
def get_comment(self) -> str:

View File

@ -3,7 +3,7 @@ from __future__ import annotations
import argparse
import logging
from functools import partial
from typing import NamedTuple
from typing import Any, NamedTuple
import settngs
from PyQt5 import QtCore, QtWidgets
@ -24,9 +24,9 @@ def generate_api_widgets(
config: settngs.Config[settngs.Namespace],
layout: QtWidgets.QGridLayout,
talkers: dict[str, ComicTalker],
):
) -> None:
# *args enforces keyword arguments and allows position arguments to be ignored
def call_check_api(*args, le_url: QtWidgets.QLineEdit, le_key: QtWidgets.QLineEdit, talker_id: str):
def call_check_api(*args: Any, le_url: QtWidgets.QLineEdit, le_key: QtWidgets.QLineEdit, talker_id: str) -> None:
url = ""
key = ""
if le_key is not None: