[FIX] selenium: importer Optional (NameError sur l'annotation de type)

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
This commit is contained in:
Mathieu Benoit 2026-07-30 15:11:12 -04:00
parent cd65565943
commit 751cdbbd29

View file

@ -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