Fix: Resolve NameError for Optional in MenuBar

- Added 'Optional' to the import list from the 'typing' module in menu_bar.py
  to resolve a NameError when using Optional as a type hint.
This commit is contained in:
2025-08-13 17:26:07 +02:00
parent 6fe090e9e5
commit ab14b4ffa3

View File

@@ -6,10 +6,10 @@ from functools import partial
from pathlib import Path
from tkinter import ttk
import typing
from typing import Any, Callable, Optional
if typing.TYPE_CHECKING:
from tkinter import BooleanVar
from typing import Any, Callable
from .logger import app_logger
from .common_tools import ConfigManager, Tooltip, message_box_animation