.pre-commit-config.yaml
2.39 KB
-
strict flake8-type-checking (#6866) · 1af6e238
recent flake8-type-checking encourages cast() using the name of the class rather than the actual class, presumably with the aim that you might find more things you don't need to import at runtime however here, consistent with other recent MRs, I've taken the view that it's better to assert that you have the expected type than to trust that it's so
David Hotham committed