github snok/flake8-type-checking v2.0.0

latest releases: v2.4.1, v2.4.0, v2.3.1...
2 years ago

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 into TC002 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.

Don't miss a new flake8-type-checking release

NewReleases is sending notifications on new releases.