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

pylance does not show some of docstring of the functions located in os.path module #1408

Closed
arian47 opened this issue Jun 8, 2021 · 3 comments
Assignees
Labels
docstrings fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@arian47
Copy link

arian47 commented Jun 8, 2021

Environment data

  • Language Server version: 2021.6.1-pre.1
  • OS and version: ubuntu 21.04
  • Python version: 3.9.5 64-bit

Expected behaviour

pylance showing the docstring of the some of the functions like splitext, etc. in the os.path module

Actual behaviour

not showing the docstrings of the some of the functions

Code Snippet / Additional information

import os
os.path.splitext()
Screenshot from 2021-06-08 10-38-48
Screenshot from 2021-06-08 10-34-09

@github-actions github-actions bot added the triage label Jun 8, 2021
@judej judej added the needs investigation Could be an issue - needs investigation label Jun 8, 2021
@github-actions github-actions bot removed the triage label Jun 8, 2021
@jakebailey
Copy link
Member

splitext appears to break due to this unfortunate dynamic behavior in the standard library: https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/ntpath.py#L209

@arian47 Are there other functions that you are seeing missing docs for, or is it just this one?

@jakebailey jakebailey added fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed needs investigation Could be an issue - needs investigation labels Sep 9, 2021
@jakebailey
Copy link
Member

This will be fixed in the next release:

image

@jakebailey
Copy link
Member

This issue has been fixed in version 2021.9.2, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202192-16-september-2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docstrings fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants