Drop Python 3.8, add Python 3.11 to CI and run pyupgrade
#1065
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
pyupgrade
#1065