Cleanup typhints and CS
Fix Settings template path