Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This refactor makes checking for plugins with form version 43 or lower a bit more efficient by:
activeProblems
check, so it doesn't need to be done again while creating thefullDescription
Usingos.path
for simple file operations like checking for existence and getting the base name, instead of creating fullpathlib.Path
objects to do soI also added an extra
0
to theVersionInfo
as the sub-sub-minor version and changed the release type to final (resolves #7) to make it less confusing. Due to a bug in theVersionInfo
constructor overloads, this actually results in the same version as the current one. I suspect this is because the release type is converted to anint
in Python andmobase.ReleaseType.PRE_ALPHA
has a value of0
, so the release type is then misinterpreted as the sub-sub-minor version.Of course, the actual performance impact is minimal, but I did a comparison out of curiosity:
Before:
After:
It does appear to have improved as a result of the refactor, especially
fullDescription
.