minor fixes for type checking and setup.cfg

1 job for 9-job-failed-297484 in 33 seconds (queued for 2 seconds)