Breaking changes
-
The plugin no longer returns errors when it finds an import that doesn't need to be evaluated at runtime, if there are already other runtime imports made to the same module. So if a third-party library already has 3 imports present in the file, we will no longer flag the 4th to be moved into a type checking block. See #84 for more context.
-
The old
TC003
for discovery of multiple type-checking blocks was removed -
TC002
used to flag third-party and built-in library imports. We have now split this intoTC002
for third-party imports and.TC003
for built-in imports, using aspy.refactor-imports for the classification.
None of these changes should produce new errors in existing projects.