Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strict flake8-type-checking #508

Merged
merged 3 commits into from
Oct 23, 2022

Conversation

dimbleby
Copy link
Contributor

@dimbleby dimbleby commented Oct 22, 2022

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

@radoering
Copy link
Member

However, it seems it doesn't notice that some imports can be moved into a TYPE_CHECKING block (e.g. VCSDependency in test_factory.py).

@radoering
Copy link
Member

Seems we have to take care of that ourselves: snok/flake8-type-checking#127

.flake8 Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Oct 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@radoering radoering merged commit 653c7ae into python-poetry:main Oct 23, 2022
@dimbleby dimbleby deleted the more-tighter-typechecking branch October 23, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants