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

Mypy/packages rebased #354

Merged
merged 2 commits into from
May 15, 2022

Conversation

dimbleby
Copy link
Contributor

@dimbleby dimbleby commented May 15, 2022

I got excited about completing the typechecking in poetry-core, and took the liberty of rebasing #339. This MR now removes the allow-mypy-errors list!

I also made a handful of tweaks per my review of that MR. I have tried to keep @branchvincent's work and my own separate, though I did have to decide what to do about conflicts in the rebase.

The change relating to #339 (comment) might be worth some thought. Per that comment, the original code looks confused so I have tidied it up in a way that looks sensible and doesn't break any tests. But if anyone has a clearer idea than I do about what was intended, I could believe that a different tidying might be better.

@sonarcloud
Copy link

sonarcloud bot commented May 15, 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.3% 0.3% Duplication

Copy link
Member

@neersighted neersighted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good! I have a couple questions, but overall this looks good to merge once those are addressed.

src/poetry/core/packages/utils/utils.py Show resolved Hide resolved
src/poetry/core/packages/dependency.py Show resolved Hide resolved
@neersighted neersighted merged commit d848bd2 into python-poetry:master May 15, 2022
@neersighted
Copy link
Member

We are now fully typed and mypy clean! Now that we have a py.typed, consumers should be able to fully typecheck against the poetry-core API with the next release! ✨

@dimbleby dimbleby deleted the mypy/packages-rebased branch May 15, 2022 16:26
@branchvincent
Copy link
Member

@dimbleby thanks so much for pushing this forward! so excited that core is finally fully typed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants