From 06687f5f7eb5cef6aa256960948245ca584b7d6f 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 ». Co-Authored-By: Claude Opus 4.8 (1M context) --- 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 09593dc..3daeb9a 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