From 0b90ca770885515097a62ecc4fdb9d6c3bd24bd0 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Fri, 5 Jan 2024 15:39:26 -0500 Subject: [PATCH] [Minor] More Type Hints --- companion.py | 2 +- update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/companion.py b/companion.py index 4a8277691..d00307482 100644 --- a/companion.py +++ b/companion.py @@ -41,7 +41,7 @@ logger = get_main_logger() if TYPE_CHECKING: - def _(x): return x + def _(x: str): return x UserDict = collections.UserDict[str, Any] # indicate to our type checkers what this generic class holds normally else: diff --git a/update.py b/update.py index 5e780a37f..024aeb098 100644 --- a/update.py +++ b/update.py @@ -21,7 +21,7 @@ if TYPE_CHECKING: import tkinter as tk - def _(x): return x + def _(x: str): return x logger = get_main_logger()