Skip to content

Sydent typing, part 3#1125

Merged
DMRobertson merged 14 commits into
masterfrom
dmr/sydent-typing-3
Dec 16, 2021
Merged

Sydent typing, part 3#1125
DMRobertson merged 14 commits into
masterfrom
dmr/sydent-typing-3

Conversation

@DMRobertson
Copy link
Copy Markdown
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
Comment thread gatsby/content/blog/2021/12/2021-12-17-sydent-typing-3.mdx Outdated
Comment thread gatsby/content/blog/2021/12/2021-12-17-sydent-typing-3.mdx Outdated
@H-Shay
Copy link
Copy Markdown

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

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?

Comment thread gatsby/content/blog/2021/12/2021-12-17-sydent-typing-3.mdx Outdated
Comment thread gatsby/content/blog/2021/12/2021-12-17-sydent-typing-3.mdx Outdated
Comment thread gatsby/content/blog/2021/12/2021-12-17-sydent-typing-3.mdx Outdated
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