Skip to content

Mypy/packages rebased#354

Merged
neersighted merged 2 commits into
python-poetry:masterfrom
dimbleby:mypy/packages-rebased
May 15, 2022
Merged

Mypy/packages rebased#354
neersighted merged 2 commits into
python-poetry:masterfrom
dimbleby:mypy/packages-rebased

Conversation

@dimbleby
Copy link
Copy Markdown
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.

@dimbleby dimbleby force-pushed the mypy/packages-rebased branch from 19462af to e3544da Compare May 15, 2022 15:56
@sonarqubecloud
Copy link
Copy Markdown

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
Copy Markdown
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.

Comment thread src/poetry/core/packages/utils/utils.py
Comment thread src/poetry/core/packages/dependency.py
@neersighted neersighted merged commit d848bd2 into python-poetry:master May 15, 2022
@neersighted
Copy link
Copy Markdown
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
@branchv
Copy link
Copy Markdown
Member

branchv commented May 16, 2022

@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