fixup settings imports (#19794)
This pull request refactors type annotations and import statements in
`source/gui/settingsDialogs.py` to use modern Python type hinting syntax
and improve import organization. The changes primarily involve replacing
`typing` module type hints with built-in generic types, as well as
reordering some import statements for clarity.