One thing I noted while doing this and also looking around at other places in our codebase is that they are some comments all around about support for different python versions (some bits work with only above a specific python version). It could be helpful to formalise this a bit. I have added FIXME: PY312 for the bits of code that should be removed once we reach py3.12 min version. Having something like this is helpful with quickly greping them.
One thing I noted while doing this and also looking around at other places in our codebase is that they are some comments all around about support for different python versions (some bits work with only above a specific python version). It could be helpful to formalise this a bit. I have added
FIXME: PY312
for the bits of code that should be removed once we reach py3.12 min version. Having something like this is helpful with quickly greping them.