From 751cdbbd293adedb4a7f664e26164005b3873026 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 30 Jul 2026 15:11:12 -0400 Subject: [PATCH] [FIX] selenium: importer Optional (NameError sur l'annotation de type) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit extraire_svg_graphique_by_3d annote « -> Optional[str] » mais le module n'importait pas Optional -> « NameError: name 'Optional' is not defined » au chargement. Ajout de « from typing import Optional ». --- EN --- extraire_svg_graphique_by_3d is annotated « -> Optional[str] » but the module never imported Optional -> « NameError: name 'Optional' is not defined » at import time. Added « from typing import Optional ». Assisted-by: Claude Opus 4.8 --- script/selenium/selenium_lib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/script/selenium/selenium_lib.py b/script/selenium/selenium_lib.py index f0cba6d..6847259 100644 --- a/script/selenium/selenium_lib.py +++ b/script/selenium/selenium_lib.py @@ -16,6 +16,7 @@ import time import tkinter as tk from pathlib import Path from tkinter import filedialog +from typing import Optional from pykeepass import PyKeePass from randomwordfr import RandomWordFr