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

Sydent typing, part 3 #1125

Merged
merged 14 commits into from
Dec 16, 2021
Merged

Sydent typing, part 3 #1125

merged 14 commits into from
Dec 16, 2021

Conversation

DMRobertson
Copy link
Contributor

@DMRobertson DMRobertson commented Nov 26, 2021

Last bit of #1110. Back references #1123 and #1124.

Tentatively scheduled for Dec 17th.

Should be previewable at https://pr1125--matrix-org-previews.netlify.app/blog/2021/12/17/type-coverage-for-sydent-evaluation

Preview: https://pr1125--matrix-org-previews.netlify.app

This was referenced Nov 26, 2021
@H-Shay
Copy link

H-Shay commented Dec 1, 2021

I said this on the other ones but I'll say it again: fantastic job! I wonder if you could get this published on mypy's blog, or the like-I am sure people will find it helpful so the more eyes on it the better. Thanks for taking the time to do such a thorough write-up, I definitely learned things.

@DMRobertson DMRobertson linked an issue Dec 16, 2021 that may be closed by this pull request
David Robertson added 3 commits December 16, 2021 12:24
They're not going to work on netlify, but screw it
- the proportion of "imprecise" lines across the project; I also used the complement, `precision = 100% - imprecision`, and
- the proportion of expressions whose type is not `Any`.

These are plotted in the graph at the top of this writeup. I could see that precision and the proportion of typed expressions were correlated, but I didn't understand how they differed. I couldn't see an explanation in the mypy docs, so I went [digging](https://github.com/python/mypy/blob/d807e097d142a88a48af93314d15ad87e41d2f19/mypy/stats.py) into the mypy source code. My understanding is as follows.

Choose a reason for hiding this comment

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

The plot is in the first post, now. Link to it?

David Robertson and others added 4 commits December 16, 2021 17:55
@DMRobertson DMRobertson merged commit 2f07f8f into master Dec 16, 2021
@DMRobertson DMRobertson deleted the dmr/sydent-typing-3 branch December 16, 2021 18:13
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.

Sydent article link broken
3 participants