Skip to content

Commit

Permalink
[Minor] More Type Hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Jan 5, 2024
1 parent 29c4bd4 commit 0b90ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion companion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

if TYPE_CHECKING:
import tkinter as tk
def _(x): return x
def _(x: str): return x


logger = get_main_logger()
Expand Down

0 comments on commit 0b90ca7

Please sign in to comment.