On 3/17/24 14:56, Alexandre Detiste wrote:
Hi,
Does anyone know some automated tool to convert Python2-style annotations
into Python3-style ?
python-debian $ grep '# type' -r | wc -l
1499
Greetings
You may try to run "sixer" which was written by a Python core developer,
and used to convert all of OpenStack to python2 + 3 using six. Once it
has found all the things that may use six, you can manually convert to
*not* use six anymore. I did this multiple times, and it worked well for
me at least.
I hope this helps,
Cheers,
Thomas Goirand (zigo)