This is the code that was published in the discussion.
In some cases, you may need to tweak the settings or code.
INFO
The Python3 environment I tested is v3.12.3.
(It will probably work around 3.8. Older than that may not be able to interpret type annotations and may cause errors...)
This is the code that was published in the discussion.
In some cases, you may need to tweak the settings or code.
INFO
FIX
The code I published in the discussion was after I used the linter and had to be changed a bit to get it to work. My apologies.
r"static readonly Version currentVersion = new ((\d+), (\d+), (\d+));"
r"static readonly Version currentVersion = new Version((\d+), (\d+), (\d+));"
Bug fix (without "not" the meaning is reversed)
if dry_run:
if not dry_run: