-
Notifications
You must be signed in to change notification settings - Fork 28
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
docstrings for compiled builtin modules #420
Conversation
d59b699
to
f246b62
Compare
…m packages don't overwrite them
5135d22
to
1939267
Compare
4141e0a
to
d8257fd
Compare
This comment has been minimized.
This comment has been minimized.
92ded14
to
53200cf
Compare
This comment has been minimized.
This comment has been minimized.
…e merged docstubs
…ow in `build_and_release` workflow)
53200cf
to
5e4b5a9
Compare
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
@DetachHead python 3.8 has a few other minor issues besides just the libcst version, I've pushed a fix to support 3.8 fully. I think you missed I've also added a |
oh oops, nice catch. thanks! fixed in #423 |
I think docstrings can be added to the whole stdlib. Current it seems to be only done with |
yeah i did that on purpose. i only made it run on compiled builtins because i figured running it on the entire stdlib would unnecessarily make it slower to build and increase the risk of something going wrong. since pyright can already see docstrings from all the other stdlib modules anyway i didn't see the point. feel free to raise an issue if you disagree. i'm open to changing this behavior in the future if that's what people want |
Ah, got it. We only need it for compiled modules. NVM. |
Hmm... doesn't seem to be this case. import re
if m := re.search('foo', 'foo'):
aa = m.group()
# ^^^^^ no docstring for `group`
There can a lot of built-in things still implemented in C. So I would still consider that dosctrings should be generated for the whole stdlib typeshed-fallback. |
oh man that's annoying, i didn't know there were modules that are only partially compiled. also it looks like pylance has the same issue i opened #428 to track this |
fixes #160
a few things we need to address before merging tho:
"fromEnvironment"
importStrategy
)